"Nyckelordet sealedförhindrar vidare subtypning av Färg och ger varning om matchning
inte är fullständig, vilket är hjälper dig att inte orsaka körtidsfel."
Should probaly add that it only stops subtyping form other code files, does not hinder when trying to subtype in the same file as the sealed trait. This was probaly explained in chapter 6, but if it's being explained again might as well add that to not confuse anyone. Like me, who had to check my notes to make sure I was not mad.
"Nyckelordet sealed förhindrar vidare subtypning av Färg och ger varning om matchning inte är fullständig, vilket är hjälper dig att inte orsaka körtidsfel."
Should probaly add that it only stops subtyping form other code files, does not hinder when trying to subtype in the same file as the sealed trait. This was probaly explained in chapter 6, but if it's being explained again might as well add that to not confuse anyone. Like me, who had to check my notes to make sure I was not mad.