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 4 of 4

Thread: Project help

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

    Default Project 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
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Project help

    Soo you're basically asking us to do your homework for you?

    Look around you. You can't name a single object that has attributes that have their own attributes?

    Example: People can have attributes describing the pets they own. Pets can have attributes describing their color, type, age, etc.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

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

    Default Re: Project help

    No I can do the project I am just not sure what to make the project on relating to sports, games or arts that will allow me to do the above and was looking more for an idea of what to do the project on and not do the project for me

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Project help

    Quote Originally Posted by jamesh View Post
    No I can do the project I am just not sure what to make the project on relating to sports, games or arts that will allow me to do the above and was looking more for an idea of what to do the project on and not do the project for me
    Well I gave you one example. Can't you think of any similar examples in sports, games, or arts?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. I need help for my project
    By GCollector in forum What's Wrong With My Code?
    Replies: 0
    Last Post: January 19th, 2013, 10:44 AM
  2. Help with Project
    By rawrxeroes in forum Object Oriented Programming
    Replies: 1
    Last Post: October 12th, 2011, 07:12 AM
  3. Project - Please Help
    By toxikbuni in forum Java Theory & Questions
    Replies: 0
    Last Post: April 20th, 2010, 09:58 AM
  4. Can anyone help me on my project?
    By alesana514 in forum Paid Java Projects
    Replies: 1
    Last Post: December 16th, 2009, 09:24 AM
  5. Need Help With Project
    By jstew132 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: November 11th, 2009, 07:15 PM

Tags for this Thread