I have a question about practice. Today, at work, I found some code that had a constructor like so:
public TestClass(String something, long[] somethingElse){
this.something = something;
this.somethingElseA = somethingElse[0];
this.somethingElseB = somethingElse[1];
}
This feels very wrong. But I cannot technically explain why. Is it bad?
public TestClass(String something, long[] somethingElse){
this.something = something;
this.somethingElseA = somethingElse[0];
this.somethingElseB = somethingElse[1];
}
This feels very wrong. But I cannot technically explain why. Is it bad?