Can you prevent your class from being inherited and becoming
a base class for some other classes?
Answer Posted / guest
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 ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is a property c#?
What is the C# syntax to catch any possible exception?
What are the types of operator?
Are structs faster than classes?
Enlist some of the properties of a thread class?
Is namespace necessary in c#?
Which program construct must return a value?
What are the advantages of using c#?
What is the difference between readkey and readline in c#?
Does main have to be static c#?
what is the index value of the first element in an array?
What is concrete class in c#?
Explain About Postback
What is console write in c#?
What is gac? How to put assembly in gac?