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
How do c++ struct differs from the c++ class?
What is meant by entry controlled loop? What all C++ loops are exit controlled?
What is the cout in c++?
What is vector string in c++?
What is isdigit c++?
Is string an object in c++?
What are pointer-to-members in C++? Give their syntax.
how to access grid view row?
List the issue that the auto_ptr object handles?
Explain "const" reference arguments in function?
What are manipulators in c++ with example?
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 is data hiding achieved in c++?
What is a literal in c++?
Is c++ an integer?