|
|
|
|
Inheritance and PolymorphismThe previous assignment solved a single specific problem: drawing points with automatic scaling. What if we wanted to draw something else besides a set of points? Rather than starting from scratch all over again, it would be nice to be able to build on what we've already done, to provide even more useful functionality. We'll use an Object-Oriented approach called Inheritance and Polymorphism, and use these techniques to construct a set of classes which make it easy to draw any shape we'd like, and in the process reuse a lot of our code. The assignment is divided into two parts:
Note: I want to see separate submissions for each of the parts. That is, I want you to consider them separate from the point of view of describing what you did, providing listings and output, etc. So expect to submit two separate Word documents, one for each part.
|
|
This page was last modified on 02 October, 2007 |