12. Inheritance Syntax


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).


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

class Application
  def initialize(name)
    @name = name

# Add your code below!
class MyApp < Application


Can't reproduce


What? I don't get what you mean


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)


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


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