What is the difference between public, private, protected
inheritance?
Answer Posted / vivek kumar kaushal
Public: this is member function of its own and anyother
class.
Private: Class member access within its class.
Protected:this is member function to its own and derived
class.
Is This Answer Correct ? | 34 Yes | 5 No |
Post New Answer View All Answers
What is bubble sort c++?
What is const in c++?
Can a list of string be stored within a two dimensional array?
What are the various storage classes in C++?
Why null pointer is used?
When should you use global variables?
Explain differences between alloc() and free()?
How do you clear a map in c++?
Can you write a function similar to printf()?
Which bit wise operator is suitable for checking whether a particular bit is on or off?
What is an orthogonal base class in c++?
What is the use of endl?
What is function overloading in C++?
What's the most powerful programming language?
Can member data be public?