hi, i need some help understanding this code. what is the difference between these three LinkedList?
public class CircularLinkedList
{
Node head;
Node tail;
public CircularLinkedList()
{
Node n = new Node();
head = n;
tail = n;
}
public CircularLinkedList(Object obj)
{
Node n = new Node(obj);
head = n;
tail = n;
}
public class CircularLinkedList
{
Node head;
Node tail;
public CircularLinkedList()
{
Node n = new Node();
head = n;
tail = n;
}
public CircularLinkedList(Object obj)
{
Node n = new Node(obj);
head = n;
tail = n;
}