package something interface Some { fun someFoo() fun someOtherFoo() : Int fun someGenericFoo() : T } class SomeOther : Some { override fun someFoo() { throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. } override fun someGenericFoo(): S { throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. } override fun someOtherFoo(): Int { throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. } }