Question: Suppose we want to implement a drawing program that creates various shapes using keyboard characters. Implement an abstract base class DrawableShape that knows the center
Suppose we want to implement a drawing program that creates various shapes using keyboard characters. Implement an abstract base class DrawableShape that knows the center (two integer values) and the color (a string) of the object. Give appropriate accessor methods for the attributes. You should also have a mutator method that moves the object by a given amount.
Step by Step Solution
3.36 Rating (159 Votes )
There are 3 Steps involved in it
abstract class DrawableShape private int xLocation private in... View full answer
Get step-by-step solutions from verified subject matter experts
