AbstractAction类 与 Action接口 的关系是什么呢?
为什么在AbstractAction 的扩展类中没有覆盖 actionPerformed方法,编译时会提示 未覆盖ActionListener中的actionPerformed方法呢?
AbstractAction 不只是一个抽象类吗?为什么必须要覆盖actionPerformed方法呢?
菜鸟求各位高手解答
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
AbstractAction类实现了ActionListener接口,所以必须覆盖actionPerformed方法