Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 full form of stl in c++?

1238


Explain how we implement exception handling in c++?

1107


Is c++ faster than c?

1084


Can we use pointers in c++?

1113


What do you mean by a template?

1114


What is the difference between method overloading and method overriding in c++?

1206


Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?

2587


Why is it called c++?

1086


What is capacity in vector in c++?

1057


Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort

1108


How many namespaces are there in c++?

1123


What is setiosflags c++?

1026


What are the three forms of cin.get() and what are their differences?

1316


Please explain the reference variable in c++?

1129


What methods can be overridden in java?

1343