HackerRank Virtual Functions solution in c++ programming
In this HackerRank Virtual functions problem in c++ programming language, This problem is to get you familiar with virtual functions. Create three classes Person, Professor and Student. The class Person should have data members name and age. The classes Professor and Student should inherit from the class Person. The class Professor should have two integer…
Learn More “HackerRank Virtual Functions solution in c++ programming” »