previous | start | next

Syntax 2.3: Object Construction

 
new ClassName(parameters)

Example:

  new Rectangle(5, 10, 20, 30)
new Rectangle()

Purpose:

To construct a new object, initialize it with the construction parameters, and return a reference to the constructed object


previous | start | next