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
When is the copy constructor called?
Why is polymorphism useful?
How are pointers type-cast?
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?
What is atoi in c++?
What are different types of loops in c++?
What is a storage class? Mention the storage classes in c++.
What is the use of namespace std in C++?
What are activex and ole?
What is an undefined behavior and sequence points
How do you generate a random number in c++?
Which is the best c++ compiler for beginners?
Explain the isa and hasa class relationships. How would you implement each?
what Is DCS ? what i will get benefit when i did?
Which of the following is evaluated first: a) && b) || c) !