You are given a class named Clock that has three instance variables: One of type int called hours, another of type boolean called isTicking, and the last one of type Integer called diff. Write a constructor for the class Clock that takes three parameters — an int, a boolean, and another int. The constructor should set the instance variables to the values provided.

You are given a class named Clock that has three instance variables: One of type int called hours, another of type boolean called isTicking, and the last one of type Integer called diff. Write a constructor for the class Clock that takes three parameters — an int, a boolean, and another int. The constructor should set the instance variables to the values provided.

LANGUAGE: JAVA

CHALLENGE:

You are given a class named Clock that has three instance variables: One of type int called hours, another of type boolean called isTicking, and the last one of type Integer called diff. Write a constructor for the class Clock that takes three parameters — an int, a boolean, and another int. The constructor should set the instance variables to the values provided.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level