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

Define sealed classes in c#?

912


Why do we need delegates?

864


Why do we use inheritance in c#?

894


What is datasource c#?

895


Is vs as c#?

896


What Is A Multicast Delegate?

1061


Can you store different types in an array in c#?

953


How do you implement thread synchronization (object.wait, notify,and criticalsection) in c#?

1066


Is null c# operator?

949


Define the term immutable ?

1051


What are partial types in c#?

898


What is delegates in c# and uses of delegates?

845


Name some properties of thread class.

997


What is a data set in c#?

932


Explain the difference between const and static read-only?

994