/******************************************************************************************** *** FILE: overridden_methods.cpp *** DATE: 03/01/2004 *** AUTHOR: Daniel Dementiev *** GOAL: This is an example program for IST482 class. It illustrates how we can override *** methods of a base class in a derived class and how we can access the overrriden *** methods. ********************************************************************************************/ #include #include using namespace std; class Person { protected: string name; public: Person() : name("unknown") {}; Person(char *n) : name(n) {}; void Print() const { cout<<"Person::Print(): "<Print(); cout<(person)->PrintAll(); } /********************************************************************************************/