As demonstrated, new classes can inherit from other classes. The new class becomes the derived class and the older class is called the ancestor class. The ancestor class may have had a number of different methods, and it is possible for the derived class to redefine those methods, overriding them. To do this, the derived class simply needs to create a method whose declaration and scope is the same as that of the ancestor class. Considering the following code:
class Frog { int Color; int Height; int Width; public: void Jump(); void Sleep(); void Eat(); int operator+(Frog param); //Defines Add Operator int operator-(Frog param); //Defines Add Operator }; class FlyingFrog : public Frog { public: void Eat(); };