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
How does code-bloating occur in c++?
How will you call C functions from C ++ and vice-versa?
What is the difference between new() and malloc()?
What is a .lib file in c++?
Explain the difference between new() and malloc() in c++?
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?
What is lvalue?
What is iostream in c++ used for?
What is a v-table?
Why ctype h is used in c++?
Difference between delete and free.
Is oops and c++ same?
What are function prototypes?
How is modularity introduced in C++?
Explain the difference between abstract class and interface in c++?