What is the difference between public, private, protected
inheritance?

Answer Posted / saikat

A private member can only be accessed by other methods of
the same class, while a public member can be accessed by
methods of any class or by non class code.

Is This Answer Correct ?    9 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of "new" operator?

664


What are proxy objects in c++?

645


Explain the operation of overloading of an assignment operator.

698


What does iomanip mean in c++?

611


What are the two shift operators and what are their functions?

563






What is a stack c++?

578


Explain Memory Allocation in C/C++ ?

643


What are the uses of pointers?

585


How many keywords are used in c++?

562


How to give an alternate name to a namespace?

593


What is an operator function? Describe the function of an operator function?

621


What do you mean by enumerated data type?

580


Define pre-condition and post-condition to a member function in c++?

669


List the merits and demerits of declaring a nested class in C++?

614


Explain shallow copy?

618