Learn

In Ruby, inheritance works like this:

class DerivedClass < BaseClass # Some stuff! end

The derived class is the new class you’re making and the base class is the class from which that new class inherits. You can read “<“ as “inherits from.”

Instructions

1.

We’ve created an Application class in the editor to the right. Create your own class, MyApp, that inherits from Application. No need to put anything inside your class definition just yet!

Take this course for free

By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.
Already have an account?