July 2017
Intermediate to advanced
796 pages
18h 55m
English
You need to use the trait keyword in order to declare a trait and it should be followed by the trait name and body:
trait Animal { val age : Int val gender : String val origin : String }
Read now
Unlock full access