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 / adit

# 3

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

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 ?    17 Yes 29 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between c++ 11 and c++ 14?

1096


What is constructor and destructor in c++?

1111


Difference between pointer to constant vs. Pointer constant

1132


What do you mean by early binding?

1066


What is pure virtual function?

1063


Are c and c++ different?

987


What is the hardest coding language to learn?

1040


How would perform Pattern Matching in C++?

1233


How compile and run c++ program in turbo c++?

1184


How do I start a c++ project?

1074


How is modularity introduced in C++?

1212


What is a dynamic binding in c++?

954


When is dynamic checking necessary?

1111


What is the array and initializing arrays in c++?

1030


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

1234