194k views
5 votes
Give a base class with at least one public member function, how many child classes can redefine that member function? a. 1 b. 0 c. all of them d. none of the above 25.

User Rahul K
by
5.2k points

1 Answer

2 votes

Answer:

C. All of them

Explanation:

The base class is the super/parent class of a child class; so a child class inherit from a base class.

When a child class inherit from a base class; it have access to redefine the member function that is declared public. 'public' is an access modifier which means it can be access from outside the class and modified.

Therefore, all the child class which inherit the base class can redefine the member function that are public.

User Cubiczx
by
5.5k points