You’re a champion! Our last topic: Ruby’s super keyword. (We’ve decided we liked Message‘s initialize method after all.)



To finish this lesson, go ahead and remove the subject parameter and @subject instance variable from Email.

Pass Email‘s initialize method the same two parameters passed to Message‘s—from and to—and add the super keyword as the only line of code in the body of Email‘s initialize method.

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?