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
#scala #traits
Question
traits may not have [...] (also called class parameters)
Answer
constructor parameters

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

Tags
#scala #traits
Question
traits may not have [...] (also called class parameters)
Answer
constructor parameters
If you want to change selection, open original toplevel document below and click on "Move attachment"

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 = !

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.