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


Please Help Members By Posting Answers For Below Questions

What is buffering in c++?

567


Show the declaration for a static member variable.

504


What is boyce codd normal form in c++?

668


What is the use of :: operator in c++?

573


Explain selection sorting?

614






What is the most common mistake on c++ and oo projects?

494


What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?

543


What are protected members in c++?

596


Explain overriding.

576


Which is the best c++ software?

578


What is std :: endl?

568


What is diamond problem in c++?

524


what do you mean by volatile variable?

564


What is expression parser in c++

1861


What do you understand by a pure virtual member function?

518