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.



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

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 [...], 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.
Answer
first mixin, trait Furry

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

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 [...], 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.
Answer
?

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

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 [...], 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.
Answer
first mixin, trait Furry
If you want to change selection, open original toplevel document below and click on "Move attachment"

Parent (intermediate) annotation

Open it
ends 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 <span>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 co

Original toplevel document (pdf)

cannot see any pdfs

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

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