Log in from a computer to take this course

You'll need to log in from a computer to start Learn Ruby. But you can practice or keep up your coding streak with the Codecademy Go app. Download the app to get started.

apple storegoogle store
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

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?