Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Help

  1. #1
    Junior Member
    Join Date
    Dec 2013
    Posts
    14
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Default Help

    Hi,

    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.

    Thanks.

  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Help

    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.

Tags for this Thread