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 are move semantics?
List the special characteristics of constructor.
Differentiate between structure and class in c++.
Is turbo c++ free?
What are put and get pointers?
What do you mean by inheritance in c++?
How does code-bloating occur in c++?
What is a static member?
What does it mean to declare a destructor as static?
What is extern c++?
Explain friend class?
What is the return value of the insertion operator?
How the keyword struct is different from the keyword class in c++?
Why we use #include iostream in c++?
What is a syntax in c++?