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

Explain the Usage of web.config

956


What are the types of serialization?

906


What is string [] args in c#?

905


What is singleordefault?

850


Name the property of the textbox which cannot be changed at runtime?

912


What is console used for?

944


Illustrate the differences between the system.array.copyto() and system.array.clone()?

914


What is the advantage of generics in c#?

855


What is hashmap in c#?

884


Is null == null c#?

837


What is the interface in c#?

905


Are c# references the same as c++ references?

945


What is single dimensional array in c#?

891


What is msil in c#?

896


Does c# support multilevel inheritance?

831