Computer Science, asked by julie37, 2 months ago

Develop a polymorphic person program that will contain a base class Person and two derived
classes Student and Professor. Create two functions AddInfo () and DisplayInfo () for each class.
Develop a purely virtual function IsBrilliant() for each class that will return True for student if
CGPA >3.5 and for Professor if number of publications>100. This function should be called at the
time of display and should display polymorphically of the person is brilliant or not. Finally test the
polymorphism in main, ask the user at rum time whether he wants to create a Student person or
Professor person, add info and then Display.

Answers

Answered by Anonymous
2

Answer:

Please refer to the attachment...

Attachments:
Similar questions