X hits on this document

163 views

0 shares

0 downloads

0 comments

13 / 46

© S. Uchitel, 2004

13

Object Instantiation

Java provides a mechanism for instantiating objects from a class definition: new

“new” does four things:

Reserves memory in the heap for an object.

Creates an object using the class as a blueprint

Runs a construction method defined within the class.

Returns a reference to the object

Document info
Document views163
Page views163
Page last viewedSun Jan 22 20:36:59 UTC 2017
Pages46
Paragraphs816
Words2901

Comments