extends Student 代表继承Student类,此时在该类中就可以调用Student类中非private的方法
implements ActionListener代表实现ActionListener接口,这样就必须实现ActionListener接口中所有方法
本文解析了Java中的extends关键字,说明其用于子类继承父类,允许调用父类非私有方法;并解释了implements关键字,指出其用于实现接口,需实现接口的所有方法。
extends Student 代表继承Student类,此时在该类中就可以调用Student类中非private的方法
implements ActionListener代表实现ActionListener接口,这样就必须实现ActionListener接口中所有方法

被折叠的 条评论
为什么被折叠?