When Good isn't Good Enough


#1



class Creature
  def initialize(name)
    @name = name
  end
  
  def fight
    return "Punch to the chops!"
  end
end

# Add your code below!
class Dragon < Creature
    def fight
     puts "Instead of breathing fire..."
        super()
    end
end

why my code error, please help me


#2

I find nothing wrong with your code. I just passed with the same one. Check your browser, clear cache, restart PC or try deleting everything and writing it again.
Here is mine, if that would help you.

class Creature
def initialize(name)
@name = name
end

def fight
return "Punch to the chops!"
end
end

Add your code below!

class Dragon < Creature
def fight
puts "Instead of breathing fire..."
super()
end
end


#3

very thanx, that is very helpfull