106k views
2 votes
Consider the following class definition: class dClass: bClass { //class members list }; The class dClass is derived from the class bClass using the ____ type of inheritance.

a. static
b. private
c. protected
d. public

1 Answer

3 votes

Answer:

The answer to the given question is option "b".

Step-by-step explanation:

In C++ programming language a private inheritance is one of the aspects to implement the has-a relationship. In this inheritance others access modifiers like public, protected is using as a private member of the derived class with private inheritance. In this programming language by default access modifier is private.

That's why the answer to this question is option "b".

User Gikkman
by
4.8k points