Exercise 0        Name __________________        Score __/8

Use BlueJ and the editor to find out the answers:

  1. What is the name of the Triangle class?
  2. Give the Java code to create two Triangle objects named t1 and t2.
  3. How many fields are there in a Triangle object?
  4. What is the default color of a Triangle?
  5. How many methods are there in a Triangle object?
  6. Give the one line of Java code to:
    1. use the erase method on t1 Triangle object.
    2. move t2 Triangle object vertically a distance of 20.
    3. change the color of t2 Triangle object.