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 vector pair in c++?
How can I learn dev c++ programming?
What is the real purpose of class – to export data?
How to implement is-a and has-a class relationships?
How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array?how can you find the nodes with repetetive data in a linked list?
What is setw manipulator in c++?
Define Virtual function in C++.
Tell me can a pure virtual function have an implementation?
How to defines the function in c++?
What are the advantages of using a pointer? Define the operators that can be used with a pointer.
What is an adaptor class or wrapper class in c++?
What are the 3 levels of programming languages?
Which bit wise operator is suitable for putting on a particular bit in a number?
What is the identity function in c++? How is it useful?
What do nonglobal variables default to a) auto b) register c) static