Implement the concept of virtual function
Design three classes named Person (with data member name), Student (with data member CGPA) and Professor (with data member appraisal_score).
Both Student and Professor must derive from Person class.
Include a virtual function named getData() to accept values for data members and a pure virtual function named findOutstanding() to return performance status of Student and Professor depending on CGPA and appraisal_score value.
To learn more, join MicroNG group
https://t.me/ITandCSLearning
#virtual #function
Download
0 formats
No download links available.
C++ Program - virtual function in c++ | inheritance in c++ | NatokHD