Could someone help me? I need a Java statement that creates the objectmysteryClo
ID: 3608908 • Letter: C
Question
Could someone help me?I need a Java statement that creates the objectmysteryClock of the clock type and initializes the instancevariable hr, min, and sec of mysteryClock to 7, 18, 39.
I think I understand how to create the object but I don'tquite follow how you initializes...
like Clock mysteryClock = new Clock(7, 18, 39) <---Would that be correct???
I need a Java statement that creates the objectmysteryClock of the clock type and initializes the instancevariable hr, min, and sec of mysteryClock to 7, 18, 39.
I think I understand how to create the object but I don'tquite follow how you initializes...
like Clock mysteryClock = new Clock(7, 18, 39) <---Would that be correct???