Trouble understanding objects
Given the statements:
Clock firstClock = new Clock(2, 6, 35);
Clock secondClock = new Clock(6, 23, 17);
firstClock = secondClock;
What is the output of the following statements?
Can anyone help me out with this?
Thanks in advance
Re: Trouble understanding objects
No we can't. We don't have a clue as to what is in the Clock class so can't even try to blindly guess what the output is. Why not try the code and find out for yourself?
Originally Posted by cagipple