title: How can I create a new class variable in 100+ existing classes?
body: <p>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.</p>
  <p>UML Diagram of a selection of car part classes:
  <a href="https://i.stack.imgur.com/eVxTg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eVxTg.png" alt="enter image description here" /></a></p>
  <p>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?</p>