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 the difference between virtual method and abstract method?
Is c# a technology?
What is dictionary and hashtable in c#?
What Is The Difference Between The System.array.copyto() And System.array.clone()?
what is the difference between .dll and .exe
What is tpl in c#?
What are the advantages of using c#?
What is the purpose of namespace in c#?
Which is faster array or arraylist in c#?
What are c# i/o classes? What are the commonly used i/o classes?
What are the differences between static, public and void in c#?
What is difference between int and int in c#?
Explain the constructor in c#.
What is COM Interoperability?
What does assert() do in c#?