12/20 Inheritance Syntax


#1



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


I'm getting an error saying "superclass mismatch for class MyApp". Can anybody tell me what it is I'm doing wrong?


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

# Add your code below
class MyApp 
end

class MyApp < Application
end


#2

Remove this before your inheritance,


#3

you only need class MyApp<Application end since in the instructions it says to only create one


#4

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