interface Foo { fun example() } class Bar { fun example() { println("Hello, world!") } } class Baz(b : Bar) : Foo by b Baz(Bar()).example()
The example prints Hello, world!
Hello, world!
Topic Id: 10575
Example Ids: 31745
This site is not affiliated with any of the contributors.
Content on the page is taken from Stack Overflow Documentation
This site is NOT affiliated with Stack Overflow or any of the contributors. | Privacy Policy | Terms of Service