12. Inheritance Syntax


#1



Please help me. I'm not sure what I'm supposed to do. It wants me to make my new class(MyApp) inherit from the old class(Application).

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


It gives me this error code message:
superclass mismatch for class MyApp


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

# Add your code below!
class MyApp < Application
end


#2

Can't reproduce


#3

What? I don't get what you mean


#4

Pasting the code above into the exercise you linked to does not produce the error message that you described.

Either your environment is different (unlikely) or you were doing something different from what you described in your post.

Looking up that error message with your search engine of choice might turn up something that is similar to what you did. (Error messages are generally easy to search for)


#5

It wasn't working earlier but now it is. Thank you


#6

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