Answer:
Following is the definition of class Clock:
public Clock (int hours, boolean isTicking, int diff)
{
this.hours = hours;
this.isTicking = isTicking;
this.diff = new Integer (diff);
}
Step-by-step explanation:
- A public class Clock has three parameters namely hours (data type: int), isTicking(data type: boolean), diff (data type: int).
- The class Clock contains a constructor having three parameters that are
- hours in int
- isTicking in boolean
- diff in integer