Question: Using the class above, define two subclasses Student and Professor. Student subclassdisplays the name and CGPA (grade points in float) and Professor subclass displays thename
Using the class above, define two subclasses Student and Professor. Student subclassdisplays the name and CGPA (grade points in float) and Professor subclass displays thename and number of publications (int). Write a main program using polymorphism todisplay the data of one student and one professor.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
