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?

Answers were Sorted based on User's Feedback



What is the difference between public, private, protected inheritance?..

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

What is the difference between public, private, protected inheritance?..

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

More C++ General Interview Questions

What are Virtual Functions? How to implement virtual functions in "C" ?

3 Answers  


When there is a global variable and local variable with the same name, how will you access the global variable?

0 Answers  


Is arr and &arr are same expression for an array?

0 Answers  


Why should you learn c++?

0 Answers  


What are structs in c++?

0 Answers  


Is recursion allowed in inline functions?

0 Answers  


How do you know that your class needs a virtual destructor?

5 Answers   Lucent,


What do you mean by public protected and private in c++?

0 Answers  


Which bit wise operator is suitable for turning off a particular bit in a number?

0 Answers  


How long will it take to learn programming?

0 Answers  


What is the role of C++ shorthand's?

0 Answers   TCS,


Define Virtual function in C++.

0 Answers   iNautix,


Categories