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


Please Help Members By Posting Answers For Below Questions

How new/delete differs from malloc()/free?

590


Are strings immutable in c++?

623


Explain the use of virtual destructor?

592


What is c++ array?

524


What do you mean by stack unwinding in c++?

688






What does iomanip mean in c++?

582


how to access grid view row?

1798


Evaluate !(1&&1||1&&0) a) Error b) False c) True

672


What is the difference between reference and pointer?

591


What is heap sort in c++?

570


Is there any function that can skip certain number of characters present in the input stream?

553


What is unary operator? List out the different operators involved in the unary operator.

563


What is the protected keyword used for?

594


Explain one method to process an entire string as one unit?

898


What are the 4 types of library?

568