Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The picture below is the question The picture below is the text code containing the other classes and subclasses 1) The main method: 2) The

The picture below is the question image text in transcribed
The picture below is the text code containing the other classes and subclasses
1) The main method:
image text in transcribed
2) The superclass student:
image text in transcribed
3). The subclass UndergradStudent:
image text in transcribed
4). The subclass Graduate student:
image text in transcribed
Download the complete student information program and add the following feature to it There is still duplicate code in the deansHonourList) method in the two subclasses. This cde can be moved into the superclass, but the two types of students have different criteria for being on the list. You can make it work without using instanceof or getClassO, and without adding any more it-else statements or instance variables. Make this change; there should be no deansHonourListO method in either GraduateStudent or UndergraduateStudent, and the getGPAO method can be removed. Hint add another instance method to the superclass and override it in the subclasses as necessary, call that method in your deansHonourListO method 2. After making the change above, create another subclass of Student called Visitingstudent. A visiting student has all of the Student instance variables, plus a string that indicates which university the student is visiting from. A visiting student cannot be on the Dean's honour list, make sure the deansHonourListO method always returns false for them. Also make sure the tostringO method includes the additional information. Submit vour four classes (Student, Graduatestudent, Undergraduatestudent, and visitingstudent) by the due

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions