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 are signs of manipulation?
what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
Explain linked list using c++ with an example?
Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?
What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?
What is a try block?
How would perform Pattern Matching in C++?
What does I ++ mean in c++?
Why do we use setw 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)
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
What is class and structure in c++?
How does code-bloating occur in c++?
Is c++ harder than java?
What is a lambda function c++?