1. What is an “is-a” relationship?
2. A program uses two classes: Animal and Dog. Which class is the superclass and which is the subclass?
3. What is the superclass and what is the subclass in the following line?
public class Pet extends Dog
4. What is the difference between a protected class member and a private class member?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here