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
How to implement a singleton design pattern in c#?
What is a dbml?
What is iqueryable and ienumerable in c#?
What is view model in c#?
Can we write class inside a class in c#?
What is the use of properties window?
What is the full form of GAC? Explain its uses?
What is window application in c#?
Which control cannot be placed in mdi?
Is stringbuilder faster than string concatenation c#?
Can we call server-side code (c# or vb.net code) from javascript?
Explain how can you clean up objects holding resources from within the code?
Can we create extension method for interface?
What is difference between array and arraylist c#?
Is c# an open source language?