But that would then allow an instance of Test1_class to be passed any string. Another way you could do it is to make the reply function virtual and override it in the base class:
Thanks for the response, but I am afraid that I need to do quite a bit more reading. It does not make sense to me how one object can have two strings with the same name. I obviously need to have a better understanding of inheritance.