Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



#odersky-programming-in-scala-2ed #scala

class Animal
trait Furry extends Animal
trait HasLegs extends Animal
trait FourLegged extends HasLegs
class Cat extends Animal with Furry with FourLegged

The last part of the linearization of Cat is the linearization of its superclass, Animal, which is copied as-is. The second to last part is the linearization of the first mixin, trait Furry, but all classes that are already in the linearization of Animal are left out now. This is preceded by the linearization of FourLegged, where again any classes that have already been copied in the linearizations of the superclass or the first mixin are left out.
If you want to change selection, open document below and click on "Move attachment"

pdf

cannot see any pdfs

statusnot read reprioritisations
last reprioritisation on reading queue position [%]
started reading on finished reading on


Discussion

Do you want to join discussion? Click here to log in or create user.