C#C
C#10mo ago
Vortac

Properties referencing their class

Given the following class example:


 csharp
class Node
{
    public Node LeftNode { get; set; }
    public Node RightNode { get; set; }
    public int Data { get; set; }
}


How do the Node properties work here? Do they create new instances of the class?
Was this page helpful?