Ask Question
4 August, 06:57

You are given a class named clock that has one int instance variable called hours. write a constructor with no parameters for the class clock. the constructor should set hours to 12.

+1
Answers (1)
  1. 4 August, 09:14
    0
    In java it would be

    public clock ()

    {

    hours = 12;

    }
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “You are given a class named clock that has one int instance variable called hours. write a constructor with no parameters for the class ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers