title: Creating a Constructor with Parameter
body: <p>this is probably a silly question, but I cant get my program to run.<br>
  I have to:</p>
  
  <blockquote>
    <p>Add a constructor to Hero that only takes a World as a parameter. Do not do anything in the constructor except set the World instance variable to the parameter passed in.</p>
  </blockquote>
  
  <p>so far I have </p>
  
  <pre><code>public Hero(World world){
      this.world = world;
  }
  </code></pre>
  
  <p>Is this right? Have been trying to call world later on in my program, but it isn't working.</p>