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 the size of a vector?
What is srand c++?
In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?
How do I start a c++ project?
Describe the process of creation and destruction of a derived class object?
Where are setjmp and longjmp used in c++?
What is the use of endl in c++ give an example?
What is a catch statement?
Name the operators that cannot be overloaded in C++?
How do you establish an is-a relationship?
What it is and how it might be called (2 methods).
Explain register storage specifier.
What do you mean by translation unit?
What do the header files usually contains?
What is friend class in c++ with example?