• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need help to complete assignment

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Create main class ClockTestthat instantiate and invoke methods from the class Clock
5.Design a class called Clockthat includes the following elements:
6.Three attributesrelated to the hours, minutes and seconds
7.Accessormethods
8.one mutatormethod that modifies all variables
9.Methods to incrementeach attribute with 1
10.Overloadingmethods to increment the attributes with a value entered by the user
11.One default constructorthat sets the clock to 0 hours, 0 minutes and 0 seconds

12.An overloading constructorthat sets the clock to a given time (hr, min, sec)
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kris,
This is just a copy of your homework assignment. You need to ask specifically what you need help with. Nobody is going to Do your Homework for you.

The first step is to write an empty class called Clock. Can you do that? Can you give it attributes? Etc. Post how far you get and what specifically you get stuck on.
 
Kris Patel
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Done with this
 
reply
    Bookmark Topic Watch Topic
  • New Topic