title: Dynamic Implementation of Linked List
body: <pre><code>class Nodetype
  {
    int info;
    Nodetype next;
  
    Nodetype(int i)
    {
       info=i;
       next=null;
    }
  }
  </code></pre>
  
  <p>My textbook has this code to create Linked List dynamically.
  The question is, when the programs is executed line-by line, it defines variable 'info' as type 'int' &amp; then variable 'next' as Nodetype. </p>
  
  <p>What is actually happening here? </p>
  
  <p>does it mean that variable 'next' will contain - </p>
  
  <ol>
  <li>Constructor 'Nodetype'</li>
  <li>int info</li>
  <li>Nodetype "next" where "next" will again have all 1,2,3 &amp; then 3 will again have 1,2,3...and so on....till infinity?</li>
  </ol>
  
  <p>I'm really irritated because I'm unable to understand how it works, can someone easily explain this? </p>