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 word you will use when defining a function in base class to allow this function to be a polimorphic function?
What is c++ & why it is used?
give me an example for testing a program showing the test path .show how the test is important and complex.
What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero
What are the various compound assignment operators in c++?
What are c++ storage classes?
How do you declare a set in c++?
Why null pointer is used?
Differentiate between the manipulator and setf( ) function?
What is the hardest coding language to learn?
Explain how we implement exception handling in c++?
What is type of 'this' pointer?
What is std :: endl?
What are the syntactic rules to be avoid ambiguity in multiple inheritance?
How do I write a c++ program?