Isn't it supposed to return "punch to the chops"? Instead it returns nil


#1


https://www.codecademy.com/en/courses/ruby-beginner-en-MFiQ6/2/4?curriculum_id=5059f8619189a5000201fbcb

Isn't it supposed to return "punch to the chops"? Instead it returns nil.

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


#2

@jkm345,

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
#
#instantiating a Creature amd a Dragon
anObject1 = Creature.new("me")
anObject2 = Dragon.new("you")
print anObject2.fight()
#or
#print anObject2.fight()

#3

I have a question about this exercise :
In the example, the super method is followed by brackets and there is a "end" after the method call.