If I have 2 constructors in my custom class and one of them takes an extra argument and does everything the first one does but with just one additional line of code (and this extra line utilises the extra argument), how best to deal with this without having to duplicate all the code in the first constructor?
Example code
public myConstuctor(int number, int number2){
int result = (number + number2);
int result2 = (number2 - number1)
//Etc
//Etc
//Etc
//Etc
}
public myConstructor(int number1, int number2, int number 3){
int result = (number + number2);
int result2 = (number2 - number1)
//Etc
//Etc
//Etc
//Etc
int result3 = (result + result2 + number3)
}