Example #1
0
        static void Main(string[] args)
        {
            Syringe syrige = new Syringe();
            Arm     arm    = new Arm("张三");
            Hand    hand   = new Hand("李四");
            Ass     ass    = new Ass("王五");

            arm.Accept(syrige);
            hand.Accept(syrige);
            ass.Accept(syrige);

            Console.ReadLine();
        }