Operator & and * at function prototype in class
<p>I'm having a problem with a class like this:</p>

<pre><code>class Sprite {
    ...
        bool checkCollision(Sprite &amp;spr);
    ...
};
</code></pre>

<p>So, if I have that class, I can do this:</p>

<pre><code>ball.checkCollision(bar1);
</code></pre>

<p>But if I change the class to this:</p>

<pre><code>class Sprite {
    ...
        bool checkCollision(Sprite* spr);
    ...
};
</code></pre>

<p>I have to do this:</p>

<pre><code>ball.checkCollision(&amp;bar1);
</code></pre>

<p>So, what's the difference?? It's better a way instead other?</p>

<p>Thank you.</p>
