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

When does a name clash occur in c++?

698


How much maximum can you allocate in a single call to malloc()?

623


Explain the difference between realloc() and free() in c++?

521


What is general form of pure virtual function? Explain?

502


What is lambda expression c++?

565






What is the copy-and-swap idiom?

593


Comment on assignment operator in c++.

693


Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list

600


What is the return value of the insertion operator?

595


What is the limitation of cin while taking input for character array?

1435


Are c and c++ similar?

575


what is VOID?

619


How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?

546


What is a character in c++?

555


What are the effects after calling the delete this operator ?

543