Apr-29-2020, 07:02 PM
You cannot call Fish.getMaxX because Fish has no idea about how to do getMaxX. However, if fish has a World object (say world), Fish could call world.getMaxX()
So why doesn't Fish or Lifeform have maxX and maxY?
So why doesn't Fish or Lifeform have maxX and maxY?