Superclass mismatch for class Dragon


#1




superclass mismatch for class Dragon


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

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

class Dragon < Creature; end
class Dragon < Person; end


#2

It's okay, it's supposed to do that. It just wants to show you this.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.