예제 #1
0
        static void Main(string[] args)
        {
            Demo1 dd = new Demo1();
            Demo2 c  = new Demo2();

            c.fun3(dd);
        }
예제 #2
0
        static void Main(string[] args)
        {
            Demo1 s1 = new Demo1();
            Demo2 c  = new Demo2();

            c.fun3(s1);
        }
예제 #3
0
 public void fun3(Demo1 p)
 {
     p.fun1();
     p.fun2();
 }