scala_school2
scala_school2 copied to clipboard
Case classes issues
object-oriented-programming/apply-unapply-and-case-classes#case-classes
"Exercise: play around" Not sure how helpful this is when you haven't fully explained what case classes are. Maybe suggest trying to instantiate a new object and see what happens.
"behaves compared to the old implementations." Not clear what the "old implementations" are (of a case class?).
Might be good to clarify explicitly that object methods are static methods and methods defined within classes are instance methods.
Why are they called "case" classes? How do they related to case statements?