Given the classes Student and CollegeStudent, as described in the previous exercise, which of the following statements are legal and which you think are not?
a. Student bob = new Student();
b. Student bob = new CollegeStudent();
c. CollegeStudent bob = new Student();
d. CollegeStudent bob = new CollegeStudent();
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here