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
Explain the use of virtual destructor?
Is swift faster than c++?
How is c++ used in the real world?
Specify different types of decision control statements?
In a function declaration, what does extern mean?
Why c++ is called oop?
How would you use the functions randomize() and random()?
What is a Default constructor?
What is the use of volatile variable?
Why Pointers are not used in C++?
When one must use recursion function? Mention what happens when recursion functions are declared inline?
What is const pointer and const reference?
Why was c++ created?
write a porgram in c++ that reads an integer and print the biggest digit in the number
Differentiate between declaration and definition.