Is this thing a method(java)?
<p>Still in the early stages of learning Java and I saw the following in some code which I did not understand:</p>

<pre><code>public class sprite {
     private Image image;

     public Sprite(Image image) {
          this.image = image;
     }
</code></pre>

<p>I'm not asking for an explanation of what the code is doing, I'm just curious what "public Sprite(..." is. Is it some kind of method? It doesn't declare a return type and it's not void.</p>

<p>Thanks for any responses. An actually explaination of what the code is really doing might be over my head I just want to know about the language construct.</p>
