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 the best book for c++ beginners?
What do the keywords volatile and mean mutable?
What is the equivalent of Pascal's Real a) unsigned int b) float c) char
What is an accessor in c++?
What is #include iostream in c++?
What does extern mean in a function declaration in c++?
What is an incomplete type in c++?
What is recursion?
What are c++ storage classes?
What is a wchar_t in c++?
Explain mutable storage class specifier.
Can create new c++ operators?
What c++ is used for?
Is ca high or low level language?
Explain one-definition rule (odr).