Dec 1, 2018 at 11:36pm
The second one declares a function called list that returns a NumberList.
Dec 1, 2018 at 11:37pm
If it looks like a function declaration the compiler will treat it as a function declaration.
Declares a function named
list that takes no arguments and returns a NumberList object.
Creates a NumberList object named
list using the default constructor.
Last edited on Dec 1, 2018 at 11:37pm