What are the differences between public, private, and
protected access?
Answer Posted / prashanth c patel
public-->inherite the protected members as preotected in
drived class and pubic members wiull be public in derived
class
protected--->pubic and protecated members of the base class
will become protected in derived class
Private-->pubilc and proteacted members will become private
in derived class
| Is This Answer Correct ? | 21 Yes | 12 No |
Post New Answer View All Answers
What is the full form of stl in c++?
Explain how we implement exception handling in c++?
Is c++ faster than c?
Can we use pointers in c++?
What do you mean by a template?
What is the difference between method overloading and method overriding in c++?
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?
Why is it called c++?
What is capacity in vector in c++?
Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort
How many namespaces are there in c++?
What is setiosflags c++?
What are the three forms of cin.get() and what are their differences?
Please explain the reference variable in c++?
What methods can be overridden in java?