Object-Oriented Programming I

Inheritance Syntax

In Ruby, inheritance works like this:

class DerivedClass < BaseClass
  # Some stuff!

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

Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.