Пример #1
0
        static void Main(string[] args)
        {
            var myDerivedClass = new MyDerivedClass();
            var mySealedClass  = new MySealedClass();

            mySealedClass.Run();
            myDerivedClass.Run();

            Console.ReadKey();
        }
Пример #2
0
 public MyDerivedClass()
 {
     _originalSealed = new MySealedClass();
     Console.WriteLine("Hello from MyDerivedClass");
 }