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: Creating and implementing class for creating a calendar object

  1. #1
    Junior Member
    Join Date
    Jul 2011
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Creating and implementing class for creating a calendar object

    Hi, so I have to create and implement a class for creating calendar objects. Some of the behaviours that the class has to do is:

    - Print a display for a given month and year
    - Print a display for the current month
    - Get the current date
    - Set the current date
    - Roll the calendar date forward or backward by a given number of days or months
    - A toString() method.

    I also have to provide a selection of constructors with default values for the variables.

    Now.. I have absolutely, no f*****g clue of what to do. I don't even know where to start. Please, please, please, could somebody give me a nudge in the right direction of where to start?

    Thanks in advance.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Creating and implementing class for creating a calendar object

    First you need to understand each of the class's requirements.
    Are there any you don't understand?
    Have you looked at the Java classes dealing with calendars to see how they work.
    Is the display to be in a GUI window or on the console?

  3. #3
    Junior Member
    Join Date
    Jul 2011
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Creating and implementing class for creating a calendar object

    Hey Norm, thanks for the reply.

    I don't think I understand what you mean, and you don't understand what I mean. I have to write my own calendar class to do the things I wrote in the OP. Not implement the existing calendar class.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Creating and implementing class for creating a calendar object

    Cross posted at Creating and implementing class for creating a calendar object

    I didn't say to USE the existing calendar class. I said to look at how they work to get ideas.

Similar Threads

  1. Using a string when creating an object.
    By ZeroLRS in forum Object Oriented Programming
    Replies: 10
    Last Post: July 13th, 2011, 09:22 PM
  2. Creating an object...
    By RodePope4546 in forum Object Oriented Programming
    Replies: 6
    Last Post: June 27th, 2011, 06:44 AM
  3. Creating Servlet object
    By tcstcs in forum Java Servlet
    Replies: 3
    Last Post: May 9th, 2011, 02:13 AM
  4. [SOLVED] Creating A Class
    By cb5950 in forum Object Oriented Programming
    Replies: 1
    Last Post: March 31st, 2011, 07:27 AM
  5. Help with creating a class
    By cdawg_2010 in forum Loops & Control Statements
    Replies: 4
    Last Post: November 1st, 2010, 07:04 AM

Tags for this Thread