1. What is the return type of a constructor?
2. Write Java statements to define a default constructor for a class named Clock. This class contains three integer and private data fields: hour, minute, and second.
3. Write a Java statement to create a new object named wallClock using the default constructor of the class Clock, as described.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here