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

Answer Posted / vimal

Use 'Sealed' Keyword with Method

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

To create a localized application which namespaces are necessary?

612


What is int16?

592


What are some examples of desktop applications?

580


What is the difference between protected and private?

576


What is the importance of closing an ado.net application?

548






Is it possible to restrict the scope of a field/method of a class to the classes in the same namespace?

574


Which are the access modifiers available in c#?

603


Assembly Code. in Rejester AL. How do Contast Replece( or Change): Bit D3 With Bit D4 and Bit D2 With Bit D5 and Bit D1 With Bit D6 and Bit D0 With Bit D7 I am Not Know Very Well Write English.

1531


Can we have multiple constructors in a class c#?

584


Can constructor be overloaded in c#?

561


What are object pooling and connection pooling and difference? Where do we set the Min and Max Pool size for connection pooling?

683


What is the property of a class in c#?

568


What is hierarchical inheritance in c#?

558


What is default method in c#?

595


What is class in oops with example in c#?

582