asked 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.

asked
User Rahul K
by
7.4k 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.

answered
User Cubiczx
by
8.0k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.