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 reflection c#?
What are actions in c#?
What are the two kinds of properties in c#.
Why interface is required?
What is jagged array?
Can we extend static class in c#?
What is hierarchical inheritance in c#?
Explain About stateless and state full web service
What is the difference between firstordefault and first?
What is base class in c#?
What are floating point numbers?
What is the Signification of the "new " keyword in C#? example
How are Windows programs different from normal C-programs?
Where static variables are stored?
What is predicate c#?