Code Editor
Object-Oriented Programming I

Inheritance Syntax

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

Report a Bug
If you see a bug or any other issue with this page, please report it here.