See note in the ScumOfTheSea abstract class. It looks like these objects are all overridding it the same way. If you define it in the abstract class, all classes extending ScumOfTheSea can automatically use getXPos, getYPos, etc.