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
}
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
}