Computer Science - Object Oriented Programming Using C++ - Discussion

Discussion Forum : Object Oriented Programming Using C++ - Section 8 (Q.No. 35)
35.
If a class will serve as a base class, most often the base class data members are
private
protected
public
polymorphic
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
3 comments Page 1 of 1.

Nagesh said:   8 years ago
How can it be public? It seems that protected have no usage.

Correct answer is 'B'.

Deepak said:   8 years ago
In case of inheritance, we use mostly protected data rather than public.

Omar Othman said:   1 decade ago
The correct answer is B. Data members are never advised to be public!

Post your comments here:

Your comments will be displayed after verification.