For trait FooLike { var bar: Int }, an implementation may be object Foo extends FooLike { private var x = 0; def bar = x; def bar_=(value: Int) { x = value }} } }.
За trait FooLike { var bar: Int }, имплементација може бити object Foo extends FooLike { private var x = 0; def bar = x; def bar_=(value: Int) { x = value }} } }.