Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 2 Harold Cohen is one of the most progressive private higher education institutions. Due to a high demand in computer science and engineering studies,

image text in transcribed

QUESTION 2 Harold Cohen is one of the most progressive private higher education institutions. Due to a high demand in computer science and engineering studies, the institution offers online classes to prospective students. The following diagram shows the inheritance hierarchy used in developing a course registration system for the institution. public class courseRegistration private String studentID: private String studentName; private int student.Age; private char studentGender; private int studentType: 7/1. undergraduate or 7/2. postgraduate /ormal constructor //accessor methods //mutator method //printer method //public double calculate Fee () (...) onlineClass - programCode String - onlineClass(String, String, int char, int, String) - getProgramCode(): String - set ProgramCode(String):void - calculateFeel) double .toString(): String a) Based on the above diagram, perform the following tasks: 1) Identify the superclass and subclass. (2 marks) II) Identify an additional data member for the subclass. (1 mark) 1) Which method implements method overriding. Give a reason for your answer. (2 marks)

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

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago