![]() |
subject > programming language construct > procedure > constructor |
![]() ![]() | ||||
constructor | ||||
subject | fact |
constructor | has definition A procedure that is called whenever a new object is created | ![]() |
has purpose to initialize the instance variables of a newly created object and perform any other needed initialization | ![]() | |
is a subtopic of The Basics of Java | ![]() | |
is part of a class | ![]() | |
is a kind of procedure | ![]() | |
procedure | may have one or more preconditions | ![]() |
provides procedural abstraction | ![]() |
Kinds of constructor :