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 do I do implement a trace?

1107


What is windows form in c#?

1029


What does the initial catalog parameter define in the connection string?

939


Is xml tags are case sensitive?

893


What are fields in c#?

897


Value Type and Reference Type Data type in C#?

964


Is nullable type c#?

934


What is the advantage of constructor?

907


Explain dataset.acceptchanges method in .net?

961


What is the use of console readline () in c#?

873


Howmany five tracing levels in System.Diagnostics.TraceSwitcher? Why they are using?

1051


Why do we need constructors?

907


Differentiate between static class and singleton instance?

1027


Describe an interface class?

1081


What is super class in c#?

945