www.webdeveloper.com
Results 1 to 2 of 2

Thread: What is this? public Node(object value) : this(value, null) { }

  1. #1
    Join Date
    Jul 2004
    Posts
    61

    What is this? public Node(object value) : this(value, null) { }

    What is this and how is it used?

    If this was a class, I know the colon : means inheritence, but it is not in this case. What is this?

    public Node(object value) : this(value, null) { }

  2. #2
    Join Date
    Jul 2004
    Posts
    61
    Well, I know now it is a constructor, but what does the : do in this scenerio?

    class Node
    {
    public Node Next;
    public object Value;
    public Node(object value) : this(value, null) {}
    public Node(object value, Node next) {
    Next = next;
    Value = value;
    }
    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles