Computers and Technology

Write the definition of a class clock. the class has no constructors and three instance variables. one is of type int called hours, initialized to 12, another is of type boolean called isticking, initialized to true, and the last one is of type integer called diff, initialized to 5.
a) public class clock {
b) private int hours = 12;
c) private boolean isticking = true;
d) private integer diff = 5;

answer
Answers: 3

Similar questions

Do you know the correct answer?
Write the definition of a class clock. the class has no constructors and three instance variables. o...

Questions in other subjects: