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

is it possible to inherit a class but methods declared in
the class should not be inheritable i possible how?

Answer Posted / aakanchha

Yes..!!
We can define a method as "private" ,so the method will not
be inherited.

and by 'sealed' we can prevent overriding but can not
prevent inheriting .

Is This Answer Correct ?    17 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give an example of a ctype.

1027


What is the difference between “constant” and “readonly” variables in c#?

998


Can we override interface method?

964


Explain the process of Serialization?

995


What is jit? What are the different types of jit?

1008


What are collection classes?

937


Is null or empty in c#?

957


Is void a class?

859


Is it possible to have a static indexer in c#?

974


List down the access modifiers available in c#?

867


What are the two kinds of properties in c#.

936


What is a partial class in c#?

1023


What is default value of decimal c#?

873


What is delegates in c#?

895


what is full assembly reference

957