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 purpose of ios::basefield in the following statement?
What are special characters c++?
Will rust take over c++?
If a function doesn’t return a value, how do you declare the function?
what is a reference variable in C++?
what do you mean by volatile variable?
What gives the current position of the put pointer?
What is encapsulation in c++?
How does work in c++?
Do class method definitions?
What are guid?
What is flag in computer?
What is general format for a prototype?
Discuss the possibilities related to the termination of a program before entering the mainq method?
Explain shallow copy?