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

What is bitwise operator in c#?

929


Is for loop faster than foreach?

1011


How do I unload an application domain?

948


How to create events for a control? What is custom events? How to create it?

997


Explain the difference between Response.Write () and Response.Output.Write ().

952


What language do desktop applications use?

946


Enlist some of the properties of a thread class?

925


What is the difference between string and stringbuilder in c#?

955


What is overloading in c#?

923


What all details the assembly manifest will contain?

827


What is property in c#?

913


What is predicate builder?

923


What is the data provider name to connect to access database?

979


Is c# still popular?

882


Can enum have methods c#?

884