I am building a Java program that checks whether or not a car has prior damage by inspecting each part individually. Each part is divided into it's own class.
UML Diagram of a selection of car part classes
My problem is that each part already exists and needs a Boolean value called 'damage'. Is there a faster way to assign a damage variable to each class rather than doing it one by one?
Aucun commentaire:
Enregistrer un commentaire