Assignments in declarations provide default values ββfor optional parameters. Object() means calling the default constructor of Object .
The effect of the default parameters is as follows: you can call the ListNode constructor with zero, one, or two parameters. If you specify two parameter expressions, they are passed as usual. If you specify only one expression, its value is passed as the first parameter, and the second is NULL by default. If you do not pass any parameters, the first parameter by default will have an Object instance created with its default constructor, and the second by default - NULL .
dasblinkenlight
source share