Various ways of calling C++ methods
<p>I have done Java and Objective-C so now I am a little bit confused with the following ways of calling methods in <code>C++</code></p>

<p>What is the difference in usage between these three, and are there any implications when using them:</p>

<pre><code>// 1
foo::bar()

// 2
foo-&gt;bar()

// 3
foo.bar()
</code></pre>
