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
Explain what are three test cases you should go through in unit testing?
Is php easier than c#?
What is a multicast c# delegate?
What are the types of methods in c#?
Why do we use parameters in c#?
What is the purpose of escape sequence?
Can you see a loop recorder?
What is typeof undefined?
write a C# Program add two matrix ?
What is the use of partial methods?
Is string value type c#?
Is c# difficult to learn?
Why do we need constructor?
Why are strings in c# immutable?
What is the main purpose of linq?