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
What is the difference between #define debug 0 and #undef debug?
Why do we need function?
Explain about vectors in c ++?
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
How do you generate a random number in c++?
Show the application of a dynamic array with the help of an example.
What is the difference between set and map in c++?
What is the role of C++ shorthand's?
How is static data member similar to a global variable?
How do you find out if a linked-list has an end?
Why Pointers are not used in C++?
What is malloc in c++?
What is this weird colon-member (" : ") syntax in the constructor?
What is the difference between global variables and static varables?
What is istream and ostream in c++?