Ask Question
15 October, 03:27

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. 15 October, 03:30
    0
    In java it would be

    public clock ()

    {

    hours = 12;

    }
Know the Answer?
Not Sure About the Answer?
Find 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 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