You are saying that each class has its own print function, you could call the superclass print function by saying Base::PrintData();