What are the differences between public, private, and
protected access?
Answer Posted / abhay
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 ? | 14 Yes | 7 No |
Post New Answer View All Answers
Is main a class in c++?
What is a down cast?
Which operations are permitted on pointers?
Where do I find the current c or c++ standard documents?
Specify different types of decision control statements?
How can you link a c program with a c function?
What is an inclusion guard?
What are the uses of typedef in a program?
Define linked lists with the help of an example.
How do you declare A pointer to a function which receives nothing and returns nothing
What is the use of structure in c++?
What is math h in c++?
Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].
Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()
What does new return if there is insufficient memory to make your new object?