For example, I want to have a function example()
on a type Child
that extends Parent
so that I can use the function on both.
The purpose is to create an "alternative operator" to construction
In Java you should use a Factory instead of a static method when used as a "constructor".
On the Kotlin side you could use a top-level-function instead of a Factory.
Or if you really want to have a "static method" in your class, I'd create a companion object and add static extension methods.