I have multiple constructor in a Java class.
public class A{
public A(){...}
public A(String param){...}
public A(String param, Object value}
}
Now I want to create a Scala class that inherit from that class
class B extends A{
super("abc")
}
But this syntax is invalid. Scala is complaining that '.' expected but '(' found.
What is the valid way to do this?
You have to append the constructor arguments to the class definition like this: