default initialization
default initialization
This is the initialization performed when a variable is constructed with no initializer.
Syntax
T object ; | (1) | |
new T ;
| (2) |
Explanation
Default initialization is performed in three situations: