package javapackage.one;

import javapackage.two.JavaClassTwo;
import kotlinpackage.one.KotlinClassOneKt;
import parentpack.JavaParent;

public class JavaClassOne extends JavaParent {
    @Override
    public Integer superClassMethod() {
        return 24;
    }

    public Integer a() {
        System.out.println(onlySuperMethod());
        System.out.println(superClassMethod());
        System.out.println(this.superClassMethod());
        return KotlinClassOneKt.extensionSelf(new JavaClassOne()).toJavaClassTwo().returnSelf().toJavaOne().otherMethod();
    }

    public Integer otherMethod() {
        return 42;
    }

    public JavaClassTwo toJavaClassTwo() {
        return new JavaClassTwo();
    }
}