0
Constructor java
Is this correct (good practice etc.): Vechicle() { System.out.print("What color? "); this.color = scanner.nextLine; } instead of using arguments?
1 ответ
0
Better is data input separated from creating object. Arguments can be used for some few key parameters, or write method for set concrete parameter individually.