17.0k views
2 votes
To ____ a public member function of a base class in the derived class, the corresponding function in the derived class must have the same name, number, and types of parameters.

a. rename
b. redefine
c. reuse
d. overload

User Ihab
by
8.8k points

1 Answer

5 votes

Answer:

None of the mentioned options

Step-by-step explanation:

  • If we define a method in a derived class with same declaration type as that of base class then it is said to be overriding a function which behaves differently which will depend on the object which is calling the method.
  • Option a,b and c are not any kind of methods we implement using coding.
  • Option d is done when number or data types of parameters are different than the declaration of the base type.

User ShdNx
by
9.0k points