internal sealed class : sealed « Class « C# / CSharp Tutorial






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


    public abstract class MyBase
    {
    }

    internal class MyClass : MyBase
    {
    }

    public interface IMyBaseInterface
    {
    }

    internal interface IMyBaseInterface2
    {
    }

    internal interface IMyInterface : IMyBaseInterface, IMyBaseInterface2
    {
    }

    internal sealed class MyComplexClass : MyClass, IMyInterface
    {
    }

    class Program
    {
        static void Main(string[] args)
        {
            MyComplexClass myObj = new MyComplexClass();
            Console.WriteLine(myObj.ToString());

        }
    }








7.37.sealed
7.37.1.Sealed methods
7.37.2.sealed types and methods.
7.37.3.Sealed Classes
7.37.4.internal sealed class