What exactly is wrong with my code


#1

class Message
@@messages_sent = 0
def initialize (from, to)
@from = from
@to = to
@@messages_sent += 1
end
end
my_message = Message.new("me" , "you")
class Email
def initialize(subject)
@subject = subject
Email < Message
super
end
end


#2

Couple of things to fix:

class Email < Message
    def initialize (from, to)
        super
    end
end
my_message = Email.new("me" , "you")