Question: When designing your Square and Circle classes from last week, it would have been useful to have a template to start from, rather than starting

When designing your Square and Circle classes from last week, it would have been useful to have a template to start from, rather than starting from scratch. Lets define such a template here, a class that will contain data items common to all Shapes (such as an X, Y, or a Color all shapes have these elements). Well include a few methods that wont be used by this labDriver, but dont worry...these may prove useful in the future. Well be satisfied here with designing yet another class, even if some of the methods are just stubs for now. For our Paint program as it stands currently, all shapes will have the following data items and methods...

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!