write a program c++ to show the concept of single inheritance
Answers
Answered by
4
Answer:
As shown in the figure, in C++ single inheritance only one class can be derived from the base class. Based on the visibility mode used or access specifier used while deriving, the properties of the base class are derived. Access specifier can be private, protected or public.
Click here to learn in detail about access specifiers and their use in inheritance
Explanation:
hope it helps you
follow me
Attachments:
Similar questions