/// <summary> /// Constructor that takes in the data to be added to the node /// </summary> /// <param name="data">the data to the node</param> public SinglyNode(T data) { Data = data; Next = null; }
/// <summary> /// Default Constructor /// </summary> public SinglyNode() { Data = default; Next = null; }