Getting Classier 17/20


#1

I'm missing something for my code, but I don't remember what. What have I got wrong?


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

#2

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


#3

Thanks That helped
scorpio1993


#4

Thank you! It helped a lot!


#5

:slight_smile:

2017年8月23日 下午9:40,“Gamerguy13” codecademy@discoursemail.com寫道: