GraphicObject - public void setColor String color...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
abstract class GraphicObject{ private String color; public GraphicObject() { this("?"); } public GraphicObject(String color) { this.color = color; } public String getColor() { return color;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } public void setColor( String color) { this.color = color; } public abstract double calculateArea(); public abstract double calculatePerimeter(); }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online