Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.kotlin.hellokotlin
- open class KotlinBaseClass
- {
- internal fun doSomething()
- {
- println("Done something!")
- }
- }
- package com.example.kotlin.hellokotlin
- class KotlinDerivedClass : BaseClass()
- {
- fun doSomethingElse()
- {
- doSomething()
- println("Done something else!")
- }
- }
- package com.example.kotlin.hellokotlin;
- public class JavaDerivedClass extends KotlinBaseClass
- {
- public void doSomethingElse()
- {
- doSomething();
- System.out.println("Done something else!");
- }
- }
Add Comment
Please, Sign In to add comment