<1>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace sealed密封类
{
public sealed class Person:Object //密封类不能被继承。但是密封类可以继承别的非密封类
{
//如果你的类不想被继承的话就写成密封类
}
/*
public class Student:Person //Student无法继承Person类
{
}
*/
class Program
{
static void Main(string[] args)
{
}
}
}
原文:http://blog.csdn.net/fanbin168/article/details/42102823