Up, Up, and Away! - not sure what's the problome


#1

class Message
def initialize(from, to, messages_sent)
@from = from
@to = to
@messages_sent =+ 1
end
end

my_message = Message.new("from", "to", "messages_sent")

class Email < Message
def initialize(from,to)
super
end
end


#2

I think it works "+=" not "=+"


#3

you should remove the argument "messages_sent" it worked for me


#4

@hagaizwick Look back at 17/20

class Message
def initialize(from, to, messages_sent)
# look back at 17/20
def initialize(from, to)
@from = from
@to = to
@@messages_sent =+ 1
end
end

my_message = Message.new("from", "to", "messages_sent")

class Email < Message
def initialize(from,to)
super
end
end