/// /// This function will append to the end of the PaymentQueue or /// create the first Node instance. /// /// public void append(PaymentRecord obj) { if (count == 0) { front = end = new Node(obj, front); } else { end.Next = new Node(obj, end.Next); end = end.Next; } count++; }
public Node(PaymentRecord value, Node next) { Next = next; Value = value; }