Question
a.
protected and public data only in C and B
b.
protected and public data only in C
c.
private data in A and B
d.
protected data in A and B
Posted under Data Structures and Algorithms
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. If a class C is derived from class B, which is derived from class A, all through public inheritance, then a class C member function can access
Similar Questions
Discover Related MCQs
Q. If the variable count exceeds 100, a single statement that prints “Too many” is
View solution
Q. Usually a pure virtual function
View solution
Q. To perform stream I/O with disk files in C++, you should
View solution
Q. Overloading the function operator
View solution
Q. In C++, the range of signed integer type variable is ________
View solution
Q. If x = y,5 = 2 then x ∧ y equals________.
(where ∧ is a bitwise XOR operator)
View solution
Q. If an array is declared as
int a[4] = {3, 0, 1, 2}, then values assigned to a[0] & a[4] will be ________.
View solution
Q. Mechanism of deriving a class from another derived class is known as____
View solution
Q. RunTime Polymorphism is achieved by ______
View solution
Q. A function call mechanism that passes arguments to a function by passing a copy of the values of the arguments is __________
View solution
Q. In C++, dynamic memory allocation is accomplished with the operator ____
View solution
Q. If we create a file by ‘ifstream’, then the default mode of the file is _________
View solution
Q. A variable defined within a block is visible
View solution
Q. The break statement causes an exit
View solution
Q. Which of the following cannot be legitimately passed to a function
View solution
Q. A property which is not true for classes is that they
View solution
Q. You can read input that consists of multiple lines of text using
View solution
Q. The keyword friend does not appear in
View solution
Q. The process of building new classes from existing one is called
View solution
Q. If you wanted to sort many large objects or structures, it would be most efficient to
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Data Structures and Algorithms? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!