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 oledb in c#?
What is the difference between function and method in c#?
Explain “static” keyword in c#?
What is int16?
What are the different types of assembly?
Do unused Namespaces in c# affect run-time performance?
What is razor view in c#?
What is inumerable?
What is string empty?
what is the difference between convert.tostring() and tostring() functions ?
What are the basic string operations? Explain.
How many bytes is a char c#?
What is difference between method and function in c#?
What is array formula?
What are the uses of namespaces?