I have 2 constructors taking different types of arguments:
public someClass(String s) {
int[] array = doSomething(s);
this(array);
}
public someClass(int[] array) {
doSomethingElse(array);
}
However, on the first constructor, I get "Method name expected." Is there a way for the constructor to call another after performing other actions, or is it just a C # restriction?
source
share