class Message @@messages_sent = 0 def initialize(from, to) @@messages_sent += 1 @from = from @to = to end end class Email < Message def initialize(from, to) super end end
This is my answer, which works. The issue is that I’m confused. If Email inherits from Message and we want our initialize to be exactly the same, what’s the point of even defining it again and using super in it? Seems like writing code for nothing or am I missing something?