Which one of the following describes characteristics of
"protected" inheritance?
a) The base class has access only to the public or protected
members of the derived class.
b) The derived class has non-public, inheritable, access to
all but the private members of the base class.
c) The derived class has access to all members of the base
class.
d) The private members of the base class are visible within
the derived class.
e) Public members of the derived class are privately
accessible from the base class.
Answer Posted / himani
Option B is correct answer
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the history of c++?
What is atoi?
What is an iterator class in c++?
What is endl?
Which bit wise operator is suitable for checking whether a particular bit is on or off?
What is #include sstream?
What is null pointer and void pointer?
Is c++ faster than c?
Tell me difference between constant pointer and pointer to a constant.
What are formatting flags in ios class?
What are the various arithmetic operators in c++?
What is anonymous object in c++?
What is a friend function in c++?
Why do we use structure in c++?
Define a nested class. Explain how it can be useful.