title: Visual Studio says "Method must have a return type"
body: <p>It says </p>
  
  <blockquote>
    <p>"Method must have a return type"</p>
  </blockquote>
  
  <p>whenever I try to debug it.</p>
  
  <p>I don't know how to fix this class</p>
  
  <p>This is a player class for a c# coded 2d Game</p>
  
  <pre><code>public class player
  {
      public float moveSpeed;
      public Vector2 position;
      public Texture2D texture;
  
      //default constructer
      public Player(Texture2D tex, Vector2 startPos)
      {
          position  = startPos;
          texture   = tex;
          moveSpeed = 5.0f;
      }
      public void Update(GameTime gameTime)
      {
          //------------------------------------------
          //check for keyboard input(keyboard IF statements)
  
      }
      public void Draw(SpriteBatch spriteBatch)
      {
          spriteBatch.Draw(texture, position, Color.White);
      }
  }
  </code></pre>