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 the meaning of string in c++?

570


which operator is used for performing an exponential operation a) > b) ^ c) none

605


Is c++ a high level language?

555


Is it possible to get the source code back from binary file?

715


Explain what are accessor methods?

667






What does return 0 do in c++?

580


What is c++ mutable?

704


What is c++ virtual inheritance?

595


What are the two shift operators and what are their functions?

561


How can a called function determine the number of arguments that have been passed to it?

657


Where is atoi defined?

581


What is pair in c++?

626


What is this weird colon-member (" : ") syntax in the constructor?

545


What is math h in c++?

607


What is wrapper class in c++?

626