title: Java - Class Hierarchy
body: <p>I'm relatively new to programming and for one of my classes <strong>I have to create a class hierarchy for the following things</strong>: <code>Country</code>, <code>State</code>, <code>County</code>, <code>City</code>, <code>Boundary</code>, and <code>River</code>.</p>
  
  <p>How would I do this?</p>
  
  <p>I think I understand that I cannot use <code>extends</code> because it implies that one thing IS-A different thing, is that the correct way to think about it? Also, I understand that there is a HAS-A relationship in Java but I do not know how to use it, do I just create separate class files? Or, are there any other ways to do this?</p>
  
  <p>Thanks for any help!</p>