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 different between Static Constructor and Private Constructor?

463


Why singleton class is sealed?

481


Write a program to create a user control with name and surname as data members and login as method and also the code to call it. (Hint use event delegates) Practical Example of Passing an Events to delegates

513


What do you mean by sealed classes and static classes?

535


What are the different types of assemblies available and their purpose?

508






What are different types of Delegates in C#?

567


what is a destructor?

602


What is inheritance c#?

487


Does constructor return any value in c#?

502


Does a class need a constructor c#?

488


What is difference between web and window application?

396


Is post back c#?

497


How to sort an int array in c#?

535


Explain how to parse a datetime string?

506


What is interface used in c#?

585