Learn
Object-Oriented Programming I
Inheriting a Fortune
Perfect! Now let’s get in a little practice with inheritance.
Instructions
1.
Create a second class, Email
, that inherits from Message
. Give it its own initialize
method that takes just one parameter, subject
, and has one instance variable, @subject
, set equal to subject
.