Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface InterfaceA {
- fun functionA()
- }
- interface InterfaceB {
- fun functionB()
- }
- class classA : InterfaceA {
- override fun functionA(){
- println("classA : functionA")
- }
- }
- class classB : InterfaceB {
- override fun functionB(){
- println("classB : functionB")
- }
- }
- class Test(instanceA: InterfaceA, instanceB : InterfaceB) : InterfaceA by A, InterfaceB by B
Add Comment
Please, Sign In to add comment