I think its D hope this help
Answer: d
Explanation; Hopes this helps!!
1. C
2. B
3. C
4. A
5. A
6. B
7. C
8. D
9. C
10. B
11. D
12. D
13. D
14. A
15. A
16. B
17. A
18. B
19. D
20. B
Some of the ones towards the start may not be right but I gave it a go :)
Answer:
Clock (int hours, boolean isTicking, int diff) // constructor clock
{
this.hours = hours;
// set the instance variable hours
this.isTicking = isTicking;
// set the boolean variable isTicking
this.diff =diff;
//set the instance variable diff
}
Explanation:
Here we declared a constructor clock which has 3 parameter hours,boolean isTicking,and diff.
The int hours, diff is of int type and isTicking is of boolean type. In this constructor, we set the instance variables values by using this keyword.