Guest User

Untitled

a guest
Oct 18th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. package com.example.kotlin.hellokotlin
  2.  
  3. open class KotlinBaseClass
  4. {
  5. internal fun doSomething()
  6. {
  7. println("Done something!")
  8. }
  9. }
  10.  
  11. package com.example.kotlin.hellokotlin
  12.  
  13. class KotlinDerivedClass : BaseClass()
  14. {
  15. fun doSomethingElse()
  16. {
  17. doSomething()
  18. println("Done something else!")
  19. }
  20. }
  21.  
  22. package com.example.kotlin.hellokotlin;
  23.  
  24. public class JavaDerivedClass extends KotlinBaseClass
  25. {
  26. public void doSomethingElse()
  27. {
  28. doSomething();
  29. System.out.println("Done something else!");
  30. }
  31. }
Add Comment
Please, Sign In to add comment