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
What is c++ good for?
What are the vectors in c++?
write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;
What is type of 'this' pointer? Explain when it is get created?
How do you remove an element from a set in c++?
Explain static and dynamic memory allocation with an example each.
What should main() return in c and c++?
How does a copy constructor differs from an overloaded assignment operator?
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
Can you use the function fprintf() to display the output on the screen?
How much do coding jobs pay?
What is the full form of ios?
What do you understand by pure virtual function? Write about its use?
What are the various access specifiers in c++?
Write syntax to define friend functions in C++.