示例#1
0
        public static void CaseStudy3()
        {
            Man x;

            x = new Boy();
            x.Play();
            x.Eat();
        }
示例#2
0
        public static void CaseStudy2()
        {
            Boy boy;

            boy = new Boy();
            boy.Play();
            boy.Walk();
            boy.Eat();
            boy.Run();
        }