Error- It looks like MyApp doesn't inherit from Application


#1


I cannot figure out why I am getting this error in such a basic problem .


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

# Add your code below!
class Application < class MyApp 
end
end

The syntax provided is:
class ClassName
end

So, what the?

class MyApp
end


#2

Solved: The instructions were poor.

The syntax should in fact be
class NewClass < Old Class
end

This did not seem clear to me at least.


#3

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