Guest User

Untitled

a guest
Jun 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. interface InterfaceA {
  2. fun functionA()
  3. }
  4.  
  5. interface InterfaceB {
  6. fun functionB()
  7. }
  8.  
  9. class classA : InterfaceA {
  10.  
  11. override fun functionA(){
  12. println("classA : functionA")
  13. }
  14.  
  15. }
  16.  
  17. class classB : InterfaceB {
  18.  
  19. override fun functionB(){
  20. println("classB : functionB")
  21. }
  22.  
  23. }
  24.  
  25. class Test(instanceA: InterfaceA, instanceB : InterfaceB) : InterfaceA by A, InterfaceB by B
Add Comment
Please, Sign In to add comment