Can you prevent your class from being inherited and becoming
a base class for some other classes?
Answer Posted / umesh
Yes, that?s what keyword sealed in the class definition is
for. The developer trying to derive from your class will get
a message: cannot inherit from Sealed class
WhateverBaseClassName. It?s the same concept as final class
in Java.
Is This Answer Correct ? | 12 Yes | 2 No |
Post New Answer View All Answers
How many variables do you need?
What are jagged arrays used for?
Are arrays immutable c#?
How do you comment in c#?
What is ilasm.exe used for?
what are nullable types in c#
What is managed code?
What is connection pooling in ado.net?
Is there an equivalent of exit() for quitting a c# .net application?
Can you explain template pattern?
What is data type c#?
How many types of constructors are there in c#?
What is c# best for?
What is tpl in c#?
Describe ways of cleaning up objects in c#.