title: new Object.getClass()
body: <p>Is there a way to make a new Object of the type of another? </p>
  
  <p>Example:</p>
  
  <pre><code>Soldier extends Person
  Accountant extends Person
  </code></pre>
  
  <p>Each subclass of Person has a constructor that accepts (BirthDate and DeathDate)</p>
  
  <p>I have a method called prepPerson(Person) and it accepts a Person. I would like to have a JComboBox populated with Person objects of different types (Accountant, Soldier) that I call .getSelectedItem() and get back a Person object. </p>
  
  <p>As I am only using those Person objects to populate the JComboBox menu how do I detect the type of person selected, make a new Soldier or Accountant object so that I can pass it to the prepPerson method?</p>