static void Main(string[] args) { Student stu = new Student("司永帅", "男"); stu.study(); stu.introduce(); Person stu1 = new Student("司永帅", "男"); stu1.introduce(); //虚方法可以直接调用 //Person per = new Person(); //per.introduce(); Console.Read(); }
static void Main(string[] args) { Student stu = new Student("司永帅", "男"); stu.study(); stu.introduce(); Person stu1 = new Student("司永帅", "男"); stu1.introduce(); //虚方法可以直接调用 //Person per = new Person(); //per.introduce(); Console.Read(); }