scala - Access companion object from base trait -


if define trait, can access successor's fields. if 1 of fields in companion object (e.g. speed, static member), can access too?

is there relationship between thetrait object , thesuccessor object, thetrait trait , thesuccessor class?

as far can tell cant. either let companion object implement trait, or maybe define abstract method in trait. implementing classes provide access companion object implementing method.


Comments