Use BlueJ and the editor to find out the answers:
- What is the name of the Triangle class?
- Give the Java code to create two Triangle objects named t1 and t2.
- How many fields are there in a Triangle object?
- What is the default color of a Triangle?
- How many methods are there in a Triangle object?
- Give the one line of Java code to:
- use the erase method on t1 Triangle object.
- move t2 Triangle object vertically a distance of 20.
- change the color of t2 Triangle object.