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 do you understand by the terms datareader object and dataset object?
What is the difference between var and dynamic types in c# 4.0?
What are the types of delegates in c#?
Describe an abstract class?
What is a dimensional array?
what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?
Can private virtual methods be overridden in c#.net?
What is event sourcing in c#?
What is regex c#?
Is javascript harder than c#?
Where is the main method in c#?
What do you mean by thread safe in c#?
What is meant by clr?
Why do we use anonymous method in c#?
what is boxing and unboxing?can we initialize unboxing directly?