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 main function c++?
Describe the setting up of my member functions to avoid overriding by the derived class?
Is c++ pass by reference or value?
What is public, protected, private in c++?
Can we make any program in c++ without using any header file and what is the shortest program in c++.
Explain the difference between struct and class in terms of access modifier.
What c++ library is string in?
Give example of a pure virtual function in c++?
Is ca high or low level language?
If there are two catch statements, one for base and one for derived, which should come first?
How do I run c++?
Is c++ slower than c?
True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends
What is a responder chain?
How do you add an element to a set in c++?