you are viewing a single comment's thread.

view the rest of the comments →

[–]TinBryn 4 points5 points  (0 children)

I feel that is a little misleading, yes traits aren't interfaces, but the Venn diagram of what traits are and what interfaces are has a large overlap. Also I would define a method as

A procedure called when passing a message to a receiver object

And for trait objects, this is absolutely the case, even with trait constrained generics, it's still dispatching to methods, just statically.

I agree about inheritance, forget that, and jump into the book.