How do you prevent a class from further inheriting?
By marking a class as "Sealed" we can prevent the class from inherited by other classes
public sealed class Customer { }
In .NET framework, "string" class is a sealed class. You can't inherit the string class.
Read More..   [32134 clicks]
Published under: C# Interview Questions and Answers · · · ·