«традиционная» реализация: interface IFoo{ fun getS():String fun modifyS():Unit } class Foo : IFoo{...