Пример #1
0
 public Link(int item)
 {
     data = item;
     next = null;
 }
Пример #2
0
 public Link(int item, Link list)
 {
     data = item;
     next = list;
 }
Пример #3
0
        public Link list = null; //default value – empty list


        


        public void AddItem(int item)
        {
            list = new Link(item, list);
        }