(The Triangle class) Design a class named Triangle that extends GeometricObject
You need to create a new Triangle object like this, so that you have a reference You also need to set it’s filled and color properties Then, you can invoke its methods like this: You’re able to access the GeometricObject‘s isFilled(), setFilled(), getColor(), and setColor() because a Triangle is a GeometricObject (extends), so it inherits all its methods. By the way, this is not how to calculate the area of a … Read more