Hello,
I am trying to write my first ever assignment in Java and am straggling with it.
I have a superclass LivingThing and two subclasses, Monster and Human. Both subclasses have an attribute 'strength', but the maximum value of it is different for each of them. In my superclass I wrote a method setStrength(int strength), which checks if strength is within minStrength and maxStrength. How could I define different maxStrength values in subclasses and push this value up to the superclass while creating a new object?
Thanks
Anna