Anyone got any ideas?
I have to identify two classes of real-world objects relating to sports, games or arts and choose them such that it is natural to think of one class as an attribute of the other.
It has to meet the below criteria too:
Each class should have at least two attributes.
Each class should include at least one useful constructor. You should avoid using default values for attributes unless you can argue that it is sensible to do so in part (i).
Each class should have getter, and where appropriate, setter methods for its attributes.
Each class should have a method toString() that returns a useful description of the object as a String. The String returned need not include all the attribute values of the object.
At least one method of one class (excluding simple getters) should have behaviour that varies in some cases when the state of the object changes.
Quit posting duplicate posts. You may 'bump' your existing thread by adding new information or ideas of your own, if you think that'll help, but new threads on the same topic will be closed or deleted. You may PM me with any complaints or concerns with this action or reasons why you think the duplicate posts are justified.