I’m currently facing a problem that I need to extend a class from Java, whose constructors are like <init>#(Int)
and <init>#(String)
for different usages.
I need to create both of them in my Scala child classes, but as far as I know, Scala only allows for 1 primary constructor that can call super, others are forced to call the primary constructor.
I don’t know if I misunderstand it or in Scala there is a better way to handle this situation?