Ja w tym kodzie co go tu wyżej wstawiłem założyłem, że wszystkie pola są wymagane. Natomiast tu jest ciekawy przykład wzorca Builder, gdzie jest założenie, że niektóre pola są opcjonalne:
https://jlordiales.wordpress.com/2012/12/13/the-builder-pattern-in-practice/
Rozumiem że więcej niż jeden konstruktor w klasie czyli np:
public Car(String mark, String model, String type, String registration)
public Car(String mark, String model, String type, String registration, String vin)
public Car(String mark, String model, String type, String registration, String vin, int year)
to marnej jakości rozwiązanie???