title: C++ class object pointers and accessing member functions
body: <p>I'm bit new to C++ and try to work things with Qt and came across this confusing thing:</p>
  
  <p>The concepts on various tutorials state something like:</p>
  
  <pre><code>Class *obj;
  </code></pre>
  
  <p><code>*obj</code> - will display the value of object stored at the referenced memory<br>
  <code>obj</code> - will be address of memory to which it is pointing</p>
  
  <p>so, I would do something like</p>
  
  <pre><code>*obj=new Class();
  </code></pre>
  
  <p>but if I want to access a function, I have to do <code>obj-&gt;function1();</code>
  instead of <code>*obj-&gt;function1();</code></p>
  
  <p>-- not sure why, since with normal objects [ <code>normalObj.function1();</code>] would work, since that's the value directly.</p>
  
  <p>So, for pointer objects why do we use memory reference to access the function,
  or is it that in case of normal objects also, its always references</p>
  
  <p>P.S: Can someone guide me to a good tutorial of usage of pointers in C++, so that my queries like these can be directly addressed in it.</p>