Edited, memorised or added to reading queue

on 21-Nov-2014 (Fri)

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

Flashcard 149650802

Tags
#scala #traits
Question
traits may not have [...] (also called class parameters)
Answer
constructor parameters

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
traits may not have constructor parameters (also called class parameters)

Original toplevel document

Scala Traits
h each class must inherit from just one superclass, a class can mix in any number of traits. Traits are used to define object types by specifying the signature of the supported methods. Scala also allows traits to be partially implemented but <span>traits may not have constructor parameters. A trait definition looks just like a class definition except that it uses the keyword trait as follows: trait Equal { def isEqual(x: Any): Boolean def isNotEqual(x: Any): Boolean = !







Flashcard 149650810

Tags
#scala #traits
Question
traits may not have constructor parameters (also called [...])
Answer
class parameters

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
traits may not have constructor parameters (also called class parameters)

Original toplevel document

Scala Traits
h each class must inherit from just one superclass, a class can mix in any number of traits. Traits are used to define object types by specifying the signature of the supported methods. Scala also allows traits to be partially implemented but <span>traits may not have constructor parameters. A trait definition looks just like a class definition except that it uses the keyword trait as follows: trait Equal { def isEqual(x: Any): Boolean def isNotEqual(x: Any): Boolean = !