Question: The following code represents an example of class Base { public: void display ( ) { cout < < Parent; } } ; class Derived:

The following code represents an example of class Base { public: void display(){ cout<<"Parent"; }}; class Derived: public Base{ public: void display(){ cout<<"Child"; } O a) Overloading O b) Overriding O c) Overwriting O d) Polymorphism O e) both a, and b

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!