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.

Answers were Sorted based on User's Feedback



Which one of the following describes characteristics of "protected" inheritance? a) Th..

Answer / guest

Answer is b)

Is This Answer Correct ?    7 Yes 0 No

Which one of the following describes characteristics of "protected" inheritance? a) Th..

Answer / ravi

the right answer is b
option <b>

Is This Answer Correct ?    2 Yes 0 No

Which one of the following describes characteristics of "protected" inheritance? a) Th..

Answer / himani

Option B is correct answer

Is This Answer Correct ?    2 Yes 0 No

Which one of the following describes characteristics of "protected" inheritance? a) Th..

Answer / roshanpr

d

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More C++ General Interview Questions

Can I uninstall microsoft c++ redistributable?

0 Answers  


What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?

0 Answers  


If dog is a friend of boy and boy is a friend of house, is dog a friend of house?

0 Answers  


What is the output of this prog. ? struct A { A(){ cout << \"A\"; } }; struct B { B(){ cout << \"B\"; } }; struct C { C(){ cout << \"C\"; } }; struct D { D(){ cout << \"D\"; } }; struct E : D { E(){ cout << \"E\"; } }; struct F : A, B { C c; D d; E e; F() : B(), A(),d(),c(),e() { cout << \"F\"; } };

2 Answers  


What are the different types of comments allowed in c++?

0 Answers  






What's the "software peter principle”?

0 Answers  


What is data structure in c++?

0 Answers  


Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers

0 Answers  


What is insertion sorting?

0 Answers  


What is late binding c++?

0 Answers  


Define 'std'.

0 Answers  


Differentiate between the message and method in c++?

0 Answers  


Categories