【发布时间】:2016-03-25 19:46:06
【问题描述】:
public class BattleEvent extends EventObject {
private BattleEventType type;
private BattleOpponent currentOpponent;
private BattleOpponent winner;
private Attack attack;
private Collectible collectible;
public BattleEvent(Battle battle, BattleEventType type) {
super(battle);
this.type=type;
this.currentOpponent=battle.getMe();
}
我在另一个类中有 Battleevent 对象我想访问我发送给 eventObject 的战斗我如何访问它?
【问题讨论】:
标签: java inheritance extends super