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

Which debugging tools you can use in the .NET ssSDK?

1022


What is a di class?

1141


Which is faster list or dictionary in c#?

1014


What is a method signature c#?

1010


How long does it take to learn c# for unity?

964


Write the difference between TypeOf and GetType?

1070


Where value types are stored in c#?

987


explain the three services model commonly know as a three-tier application.

1042


Why we use extension methods in c#?

927


What are controls in c#?

1001


What is an argument in c#?

1007


What is Satellite Assemblies ?

1045


What does dbml mean in texting?

976


How many types of namespaces available in version4?

996


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

1029