美文网首页
教师要认真授课

教师要认真授课

作者: 哈迪斯Java | 来源:发表于2023-06-09 23:17 被阅读0次

    class People {
    public void work() {
    System.out.println("每个人都要工作");
    }
    }

    class Teacher extends People {
    @Override
    public void work() {
    System.out.println("教师要认真授课");
    }
    }

    class Student extends People {
    @Override
    public void work() {
    System.out.println("学生要好好学习");
    }
    }

    public class Demo {
    public static void main(String[] args) {
    People people = new People();
    people.work();
    People teacher = new Teacher();
    teacher.work();
    People student = new Student();
    student.work();
    }
    }

    相关文章

      网友评论

          本文标题:教师要认真授课

          本文链接:https://www.haomeiwen.com/subject/czphddtx.html