• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

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: 41403
853
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
 
no wonder he is so sad, he hasn't seen this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic