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


Please Help Members By Posting Answers For Below Questions

How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?

586


How many types of classes are there in c++?

601


What is stream and its types in c++?

564


Ask to write virtual base class code?

2153


Explain about Garbage Collector?

651






What is while loops?

619


How java is different from c and c++?

650


What is the full form of stl in c++?

683


Does c++ have a hash table?

548


Why the usage of pointers in C++ is not recommended ?

901


Why do we use classes in programming?

578


Describe new operator?

624


What is virtual destructor? What is its use?

579


Explain what is oop?

621


Explain what happens when a pointer is deleted twice?

736