is it possible to define secondary constructors fo...
# getting-started
h
is it possible to define secondary constructors for all inheritor classes in an abstract class? e.g.
Copy code
abstract class Foo() {
    lateinit var foo: Int

    constructor(foo: Int) : this() {
         this.foo = foo
    }
}

class Bar : Foo()

val bar = Bar(2)
(yes, i know i'm leaking
this
in the first constructor) as well is it possible to define static members of inheritors? (which is basically what a constructor is...)