Question: A class named University having subclasses as Engineering and Medical. Each subclass has their child class as students. Take necessary assumptions for their data members

A class named University having subclasses as Engineering and Medical. Each subclass has their child class as students. Take necessary assumptions for their data members and member functions.
Print total number of students and highest percentage in a stream using method overriding.
Illustrate dynamic method dispatch.
Question 2. Define an Interface named Term_Project which includes a member function display_details() and data members project_mark. Class Exam is derived from Student class and class Grade is derived from class Exam. The data members of class Student are Registration number and practical marks. Class Exam has a data member named theory marks and total marks. Total marks is the sum of theory marks and practical marks. Class Grade has a data member named sum which is calculated by adding total marks and project_mark. Class Grade implements the interface Term_Project. Create an object for the class Grade and display all the marks by calling the function display_details().
java

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!