Kotlin is a language too that allows for things like generics and objects as it was meant to interface and call Java code in kotlin but it doesn't support inheritance at all. You have to use interfaces which they can have concrete types but this is as close as one can get to inheritance with kotlin.