mspendreashajo mspendreashajo
  • 16-12-2016
  • Computers and Technology
contestada

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.

Respuesta :

Destroyerasdf Destroyerasdf
  • 16-12-2016
in java it would be 

public clock()
{
     hours = 12;
}
Answer Link

Otras preguntas

Which statement identifies a healthy way to improve nutrition in a diet?
What is m∠S? Enter your answer in the box. ° An isosceles triangle with vertices labeled R, S, and T. Side R T is the base. Sides R S and side S T are
If the function f(x)=mx+b has an inverse function, which statement must be true
HELP ASAP!!! We want to zoom in and consider DNA on the molecular level. A nucleotide is composed of 1 phosphate, 1 base, and 1 sugar. -Sugar (Deoxyribose)
Which two sentences contain Ronald Reagan's main argument in this excerpt from his 1964 speech "A Time for Choosing"?
Someone please help ASAP will give brainliest
A car travled 190km in 2.5 hours. What is the average speed in km per hour?
How can a large group of people with widely different backgrounds, beliefs and interest work together to form one political union
What is the solution of the following system? {5x + 5y = 15 {6x - 4y = -12
What was not one of Benjamin Banneker's accomplishments? A.) he calculated he cycles of locust plagues. B.) he lobbies for free public education. C.) he signed