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

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

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 Databases Questions!