Skip to content
the poor coder

Home / Topics / #virtual-functions

#Virtual Functions

1 post
2020

Hackerrank Virtual Functions Solution

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…

ESC