What is the difference between public, private, protected
inheritance?
Answer Posted / girish kumar
publc: variable declare in public can be access anywhere in the program i.e. other classes can also use same variable which are declare once.
private:variable declare in private can't be access outside the class in which it is declare .Variable are only access in the same class.
| Is This Answer Correct ? | 24 Yes | 3 No |
Post New Answer View All Answers
What is Destructor in C++?
What do you mean by function and operator overloading in c++?
What can I use instead of namespace std?
What is this pointer in c++?
Why do we use templates?
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
What is the meaning of c++?
Are vectors faster than arrays?
What are the two types of polymorphism?
What is the difference between an enumeration and a set of pre-processor # defines?
what does the following statement mean? int (*a)[4]
What is the two main roles of operating system?
Differentiate between late binding and early binding.
What are the benefits of oop in c++?
What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)