示例#1
0
 static void Main(string[] args)
 {
     Pig myPig = new Pig(); // Create a Pig object
     myPig.animalSound();  // Call the abstract method
     myPig.sleep();  // Call the regular method
 }
示例#2
0
        static void Main(string[] args)
        {
            Pig myPig = new Pig();  // Create a Pig object

            myPig.animalSound();
        }