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 do you know about near, far and huge pointer?
Can you use the function fprintf() to display the output on the screen?
What is c++ redistributable?
What causes a runtime error c++?
Define a constructor - what it is and how it might be called (2 methods)?
What is the difference between #import and #include in c++?
What is the difference between ++ count and count ++?
Is c++ used anymore?
Can member data be public?
Is string data type in c++?
What is a memory leak c++?
What can c++ be used for?
How can I learn c++ easily?
How would you use the functions sin(), pow(), sqrt()?
Explain the virtual inheritance in c++.