C#類(11)シール類.

2665 ワード

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;



namespace ConsoleApplication1

{

    sealed class MyClass // sealed  ,  .

    {}

/// <summary>

/// ///////////////

/// </summary>

    class MyClass1

    { public virtual void ShowMessage() { Console.WriteLine(" "); } }



    class MyClass2 : MyClass1

    { sealed public override void ShowMessage() { Console.WriteLine(" , "); } }  // ,  .



   

/// <summary>

/// //////////////

/// </summary>

    

    class Program

    {

        static void Main(string[] args)

        {

        }

    }

}