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


Please Help Members By Posting Answers For Below Questions

What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?

676


What is c++ & why it is used?

592


give me an example for testing a program showing the test path .show how the test is important and complex.

2434


What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero

643


What are the various compound assignment operators in c++?

556






What are c++ storage classes?

622


How do you declare a set in c++?

542


Why null pointer is used?

587


Differentiate between the manipulator and setf( ) function?

600


What is the hardest coding language to learn?

609


Explain how we implement exception handling in c++?

580


What is type of 'this' pointer?

603


What is std :: endl?

596


What are the syntactic rules to be avoid ambiguity in multiple inheritance?

637


How do I write a c++ program?

598