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

What are the steps in the development cycle?

1098


What is scope operator in c++?

1083


What is the two main roles of operating system?

1039


What is the use of map in c++?

1146


Where can I run c++ program?

1064


Can a class be static in c++?

1092


Write about the members that a derived class can add?

969


What is the type of 'this' pointer?

1016


How can I learn dev c++ programming?

1045


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create

2632


Why do we use double in c++?

1062


Differentiate between a template class and class template in c++?

1097


Which is the best c++ compiler for beginners?

1092


Explain what is class definition in c++ ?

1122


Write a program to concatenate two strings.

1094