How can you prevent classes to be inherited?

Answer Posted / dhiraj kumar pandey

We can prevent classes to be inherited by using the key
word SEALED.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between disposing of () and finalize() methods in c#?

544


What is an array? Give the syntax for a single and multi-dimensional array?

489


Difference between abstract classes and interfaces

511


Can we write class inside a class in c#?

541


What is activator c#?

477






When was c# created?

531


What is a datacontract?

480


How do I move from one form to another in c#?

465


Is a char?

456


What is lazy loading entity framework?

495


What is parsing?

527


What is the difference between func and action delegate?

487


What is difference between a constant and read-only in C#?

531


State two different types of access modifiers.

555


What is the use of return in c#?

486