Answer: If you want to prevent a class to create subclass, the class must be sealed. Most of the security classes are sealed. Sample Code using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
public sealed class TryCatch
{
public void SaveEmployee(string empID)
{
// few line of code here
}
}
}
|