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 / vishal

That's Correct.
Using private keyword in the method signature is a way of
preventing inheritance of that method in child class.

Please note that using "sealed" keyword in method signature
only prevents overriding of the method in child class, but
the method is still inheritable in the child class.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need interfaces in c#?

910


Explain how do you directly call a native function exported from a dll?

932


hi, is compulsory .net knowledge need for biztalk server training. if need, how far?.tell me some info abt real time instructors in hyd or other?

1555


Can a method return multiple values in c#?

879


How can you prevent escaping on backslashes in C# with string definitions?

1255


Explain the difference between directcast and ctype.

1015


What is the implicit name of the parameter that gets passed into the set method/property of a class?

941


What is difference between interface and abstraction?

918


How assembly versioning in .NET prevent DLL Hell problem?

970


what are pointer types in c#

997


Why do we need collections in c#?

878


Write a syntax for writing a event delegate.

961


What is datetime minvalue in c#?

1048


What is difference between private and static constructor?

936


What are the benefits of using the aggregate method in linq?

1021