Question: 5. What is base class and derived class. Explain with an example. 6. How can we access private member variables by an object of a

5. What is base class and derived class. Explain with an example. 6. How can we access private member variables by an object of a class? Explain with proper example. 7. If class B inherits class A publicly, then is it possible to access the private members of class A from an object of class B? if the answer is yes then explain with example. 8. What do you mean by constructor and destructor function? Write a C++ program to explain these two functions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
