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 oop in c++?

597


What is java and c++?

658


Tell me difference between constant pointer and pointer to a constant.

624


What is the basic difference between C and C++?

620


Does dev c++ support c++ 11?

550






What is a class definition?

611


What is the difference between set and map in c++?

603


Why is polymorphism useful?

561


How does com provide language transparency?

600


What is a catch statement?

579


How can you differentiate between inheritance and implementation in c++?

640


What is doubly linked list in c++?

628


Is c++ still being used?

561


What is ofstream c++?

583


Is there a sort function in c++?

543