Edited, memorised or added to reading queue

on 26-Jan-2016 (Tue)

Do you want BuboFlash to help you learning these things? Click here to log in or create user.

Flashcard 149632057

Tags
#odersky-programming-in-scala-2ed #scala
Question
You can do anything in a trait definition that you can do in a class definition, and the syntax looks exactly the same, except:
  • a trait cannot have any “class” parameters
  • [behaviour?]
Answer
whereas in classes, super calls are statically bound, in traits, they are dynamically bound.

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

Parent (intermediate) annotation

Open it
You can do anything in a trait definition that you can do in a class definition, and the syntax looks exactly the same, except: a trait cannot have any “class” parameters​whereas in classes, super calls are statically bound, in traits, they are dynamically bound.

Original toplevel document (pdf)

cannot see any pdfs