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 is the difference between public, private, protected
inheritance?

Answer Posted / mahen dimri

for V.M public
class a class b
private =! private.
public = public.
protected = protected.

for V.M private
class a claas b
private =! private.
public = private.
protected = private.

for V.M protected
class a class b
private =! private.
public = protected.
protected = protected.

(Where V.M= Virtuality Mode)

Is This Answer Correct ?    23 Yes 41 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use struct in c++?

986


Write about the access privileges in c++ and also mention about its default access level?

1029


Does std endl flush?

998


What is lvalue?

1144


Which operations are permitted on pointers?

964


What are the four partitions in which c++ compiler divides the ram?

1190


What is the role of static keyword for a class member variable?

1052


What are structures and unions?

968


How the delete operator differs from the delete[]operator?

1066


Why is swift so fast?

1078


What is fflush c++?

973


How to defines the function in c++?

1078


Comment on c++ standard exceptions?

1052


Define whitespace in C++.

1162


What is virtual methods?

1095