title: Creating a setter method for an enum
body: <p>I need to create a method that sets the value of an enum attribute of an object. This is my code:</p>
  
  <pre><code>public void setSpecialization(VehicleType specialization) {
      Specialization = specialization;
  }
  </code></pre>
  
  <p>both variables are of the same type, how am I supposed to assign the value? Because I keep getting <code>null</code> values in the field.</p>