You are given a class named Clock that has one int instance variable called hours. Write a constructor for the class Clock that takes one parameter, an int, and gives its value to hours.

LANGUAGE: JAVA

CHALLENGE:

You are given a class named Clock that has one int instance variable called hours. Write a constructor for the class Clock that takes one parameter, an int, and gives its value to hours.

SOLUTION:

The Bad News: The content you are trying to access is only available to members.

The Good News: You too can be a member, simply Click Here.

Already a member?

Posted in ,