Ask Question

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.

+3
Answers (1)
  1. 8 August, 15:04
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers