With regards to object-oriented Java constructor syntax and design, specifically parameterized or specific constructors, it is the accepted process, as describe in books, to build a parameterized constructor in this form:
public Car (int x, int y, int g) {
xdistance = x;
ydistance = y;
gas = g;
}
For shorthand and simplification, why can we not build the constructor in this form?
public Car (int xdistance, int ydistance, int gas) {
}
This is a cleaner approach, with less code, yet I do not see this syntax adopted in tutorials.