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...

If we inherit a class do the private variables also get
inherited ?

Answer Posted / ashwini chavan

yes they are inherited, but cannot be accessible.because
when we inherite the class then all data member and function
member of the base class are accesed in the derive class
attomaticaly.but private specifier is accesible only it's
own class out side class can't acces that private member
when we try it then we got error

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How Is The Dll Hell Problem Solved In .net?

1004


Is array a collection c#?

900


What is the resgen.exe tool used for?

970


How do I declare inout arguments in c#?

918


How does inheritance work in c#?

1098


How do I type a whitespace character?

1056


What is dataadapter c#?

867


What do you mean by directing?

967


What is access modifier in c#?

882


Is inheritance possible in c sharp?

1028


Is list a collection c#?

962


what is difference between destruct or and garbage collection ?

930


What is inumerable?

1019


Can you have parameters for static constructors?

926


Define an escape sequence, name few strings in escape sequence?

921