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

What is delegates in c# and uses of delegates?

472


Are enums static c#?

501


What is datetime parse in c#?

517


How do I trim a space in c#?

439


Why do I get a syntax error when trying to declare a variable called checked?

552






What is default c#?

505


What is nullable types in c#?

502


What are anonymous functions in c#?

524


Give some examples for built in datatypes in c#?

552


What is difference between override and new in c#?

512


what is a destructor?

602


Is there any sample c# code for simple threading?

563


What is strongly typed view?

506


Explain deadlock?

517


Can struct inherit from class c#?

532