What is the difference between public, private, protected
inheritance?
Answer Posted / tekle
The type or member can be accessed by any other code in the
same assembly or another assembly that references it.
private
The type or member can only be accessed by code in the same
class or struct.
protected
The type or member can only be accessed by code in the same
class or struct, or in a derived class.
Is This Answer Correct ? | 18 Yes | 4 No |
Post New Answer View All Answers
What is oop in c++?
What is java and c++?
Tell me difference between constant pointer and pointer to a constant.
What is the basic difference between C and C++?
Does dev c++ support c++ 11?
What is a class definition?
What is the difference between set and map in c++?
Why is polymorphism useful?
How does com provide language transparency?
What is a catch statement?
How can you differentiate between inheritance and implementation in c++?
What is doubly linked list in c++?
Is c++ still being used?
What is ofstream c++?
Is there a sort function in c++?