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
Define private, protected and public access control.
Explain the uses of static class data?
What it is and how it might be called (2 methods).
What are arrays c++?
What are register variables?
What is the main purpose of overloading operators?
What sorting algorithm does c++ use?
How do you define/declare constants in c++?
What is the difference between public, private, and protected access?
Which c++ compiler is best?
Difference between declaration and definition of a variable.
What's the most powerful programming language?
Which is most difficult programming language?
Define Virtual function in C++.
How to allocate memory dynamically for a reference?