Can you prevent your class from being inherited and
becoming a base class for some other classes?
Answer Posted / dhanunjaya
yes,By using a keyword called "sealed".a sealed class can
never be a base class for any class,it is the bottom most
class in a class hierarchy.......so it cant be be base
class further more....
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is continue in c#?
Explain the different ways a method can be overloaded?
What is Named parameter in C#?
Explain the difference between the debug class and trace class?
Explain code compilation in c#.
What is int16?
Is array passed by reference in c#?
Do we get an error while executing the “finally” block in c#?
Why References are stored on heap and variables on stack?
Define constructor in c#.
Does main have to be static c#?
What are async and await?
What is a helper method in c#?
What do you mean by serialization in .NET?
Does c# support try-catch-finally blocks?