Constructor Invocation
The value of expression
new class-name()
is a reference to a new object of the given class-name
If there is a user-defined constructor with no parameters, then it is invoked on the new object created by new.
Previous slide
Next slide
Back to first slide
View graphic version