Sealed class in C#

Sourav.Kayal
Posted by Sourav.Kayal under C# category on | Points: 40 | Views : 965
using System;
using System.Linq;
using System.Text;
using System.Collections;
using System.IO;
using System.Diagnostics;
using System.Collections.Generic;
namespace BlogProject
{
sealed class TestClass
{
}
//Error
class Inherited : TestClass //Not possible to inherit
{ //Class from sealed class
}
class Program
{
static void Main(string[] args)
{

Console.ReadLine();
}
}
}

Comments or Responses

Login to post response