示例#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();
        }
示例#3
0
 private static void ThePark(Boy boy)
 {
     Console.WriteLine("At the park");
     boy.Play();
 }