예제 #1
0
        static void Main(string[] args)
        {
            Base b = new Base();
            Der  d = new Der();

            b.Say();
            d.Say();
            b = d;
            b.Say();
        }
예제 #2
0
 public static void Say(this Der d)
 {
     d.f("as Der");
 }