Answer Posted / rishu
Sealed classes are used to restrict the inheritance feature of object oriented programming. Once a class is defined as sealed class, this class cannot be inherited.
In C#, the sealed modifier is used to define a class as sealed. In Visual Basic .NET, NotInheritable keyword serves the purpose of sealed. If a class is derived from a sealed class, compiler throws an error.
If you have ever noticed, structs are sealed. You cannot derive a class from a struct.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
There were a lot of questions asked, so I will list the topic (and add a what is "topic" and know pros/cons). Extreme programming, what is a transaction, various SDLC design approaches, what is a namespace, define a good test case, what is a stored proc, webservice? design patterns? linker? compiler? access modifiers? stack vs. queue? arrays vs. linked lists? sorting algorithms? recursion? OOP principles?
How much time will it take to learn unity?
What is hashset c#?
What does an indexer do?
Can we overload the main method in c#?
What is a delegate in c#?
What are the access modifiers in c#?
What are fields in c#?
What is lazy keyword in c#?
What is lastindexof c#?
What are Memory foot print of an exe?
Can struct inherit from class c#?
What is signature c#?
What is dependency injection?
What is Event - Delegate?