Following the instructions I created a “Dragon” class which inherits from “Creature” class and inside it I defined method “fight” which overrides the “fight” method of “Creature” class.
My code looks similar to this;
class DerivedClass < BaseClass def OverrideMethod ... end end
But when I run the code, I am getting “superclass mismatch for class Dragon” error on console. What is the problem with this code?
Note: As soon as I refreshed my browser problem disappeared.