title: I need help understanding Linked List Algorithm (C#)
body: <p>I need some help understanding some of the implementation used in Linked Lists.
  The major thing I don't understand is what the &quot;public Node next;&quot; statement represents. I'm confused by this because I've never seen a class being used like a Datatype to assign a variable.</p>
  <p>does the &quot;next&quot; variable hold all data from the &quot;Node&quot; class? I'm just confused by what data the &quot;next&quot; variable actually references.</p>
  <p>I should note that I know how to implement the linked list, I just want to understand it better</p>
  <p>Code from my Implementation:</p>
  <pre><code>class Node
      {
          public int data;
          public Node next;
   
          public Node(int data)
          {
              this.data = data;
              next = null;
          }
      }
  
      class SingleLinkedList
      {
          Node headNode = null;
   
          public void FrontInsert(int data)
          {
              Node newNode = new Node(data);
              newNode.next = headNode;    
              newNode.data = data;       
              headNode = newNode;      
          }
  </code></pre>