Given the classes Student and CollegeStudent, as described , suppose that joe is an object of Student and jill is an object of CollegeStudent.
a. Can joe be the argument of a method whose parameter’s type is CollegeStudent? Why or why not?
b. Can jill be the argument of a method whose parameter’s type is Student? Why or why not?
c. Is joe.getYear() legal? Why or why not?
d. Is jill.getName() legal? Why or why not?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here