title: Is inheritance useful in this case?
body: <p>I want to work on GIS and I am in conception step, and I have these kinds of roads (ways)</p>
  
  <ul>
  <li>Highway &rarr; Primary</li>
  <li>Highway &rarr; Secondary</li>
  <li>Highway &rarr; LivingStreet</li>
  <li>Highway &rarr; Tertiary</li>
  <li>Highway &rarr; Residential</li>
  <li>Highway &rarr; Unclassified</li>
  <li>Highway &rarr; Motorway</li>
  <li>Highway &rarr; Steps</li>
  <li>Highway &rarr; Footway</li>
  <li>Highway &rarr; Service</li>
  <li>Highway &rarr; Pedestrian</li>
  <li>Highway &rarr; SecondaryLink</li>
  <li>Highway &rarr; PrimaryLink</li>
  <li>Highway &rarr; Trunk</li>
  <li>Highway &rarr; Path</li>
  <li>Highway &rarr; TertiaryLink</li>
  <li>Highway &rarr; Track</li>
  <li>Highway &rarr; Cycleway</li>
  <li>Highway &rarr; Road</li>
  <li>Highway &rarr; MotorwayLink</li>
  </ul>
  
  <p>I am using Java and my question is: Is it preferable to create for each one a class extending an abstract class ("way")? Or it is preferable to create theme just in one class and use an attribute <code>int highwayType</code> to differentiate between them, knowing that each one has its own drawing function and zoom level of drawing?</p>