WindowAdapter是抽象类,为什么可以用
new WindowAdapter()来实例化
可以解释一下吗
谢谢[梅花鹿 (1-5 18:32, Long long ago)]
[ 传统版 |
sForum ][登录后回复]1楼
You can still instantiate abstract classes, ...... as long as you provide the implementation during instantiation. (The class created is a subclass of the abstract class, and is called an "anonymous class.")[Flying (1-6 9:31, Long long ago)] [ 传统版 | sForum ][登录后回复]2楼