Question: If a data member is declared as private, protected or public in a base class, discuss how it can or cannot be accessed in a

If a data member is declared as private, protected or public in a base class, discuss how it can or cannot be accessed in a public member function of a derived class. Discuss the difference between overloading and overriding a member function in a derived class. Give an example of a situation where it is necessary to define a virtual destructor. What is the feature that makes a base class an abstract class? When designing a class hierarchy involving classes A and B, what are the two questions that must be asked to determine whether class B should be derived from class A? What does the following code do
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
