static void Main(string[] args) { var myDerivedClass = new MyDerivedClass(); var mySealedClass = new MySealedClass(); mySealedClass.Run(); myDerivedClass.Run(); Console.ReadKey(); }
public MyDerivedClass() { _originalSealed = new MySealedClass(); Console.WriteLine("Hello from MyDerivedClass"); }