Instance Methods
Our Triangle class also defines a pair of instance methods: class Triangle extends Polygon { … public void draw(…) {…} public void fill(…) {…} }
Evidently, these methods are used to draw and fill Triangle objects
Previous slide
Next slide
Back to first slide
View graphic version