Ask Question
5 February, 15:05

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, and the last one is of type integer called diff. instructor notes: recall that you can initialize an instance variable on the same line that you declare it.

+1
Answers (1)
  1. 5 February, 16:38
    0
    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, and the last one is of type integer called diff.

    public class Clock

    {private int hours = 12;

    private boolean isTicking;

    private Integer diff; }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Write the definition of a class clock. the class has no constructors and three instance variables. one is of type int called hours, ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers