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
How new/delete differs from malloc()/free?
Are strings immutable in c++?
Explain the use of virtual destructor?
What is c++ array?
What do you mean by stack unwinding in c++?
What does iomanip mean in c++?
how to access grid view row?
Evaluate !(1&&1||1&&0) a) Error b) False c) True
What is the difference between reference and pointer?
What is heap sort in c++?
Is there any function that can skip certain number of characters present in the input stream?
What is unary operator? List out the different operators involved in the unary operator.
What is the protected keyword used for?
Explain one method to process an entire string as one unit?
What are the 4 types of library?