In the following code, will the two invocations of writeOutput produce
the same output on the screen or not? (The relevant classes are defined in
listings 8.1, 8.2, and 8.4.)
Person person = new Student("Sam", 999);
person.writeOutput();
person = new Undergraduate("Sam", 999, 1);
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here