C# 密封类使用sealed修饰

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace @sealed
{
    class Program
    {
        static void Main(string[] args)
        {
        }
    }

   
    public  class Person
    { }

    //密封类
    /**密封类特征:
     *1、不能够被其他类继承,但是可以继承其他类
    */
    public sealed class Teacher:Person 
    { }
}
原文地址:https://www.cnblogs.com/zoro-zero/p/4058005.html