Processing math: 100%

Previous Up Next

New

A new expression has the form

new <type>

The value is a fresh object of the appropriate class. If the type is SELF_TYPE, then the value is a fresh object of the class of self in the current scope. The static type is <type>.

Previous Up Next