CONSTRUCTOR -> is a method that has the same name as the class name, used to initialize the fields in the object, do not return a value, not even using the void, can be 'overloaded Constructros' (constructor that can initialize another object of the 1 way).
The example constructor program
image below is a continuation of the above programs. If you want to see the picture more details, please click on the image to the two
It is the pattern of existing constructors in java programs. This is only a small part of other programs.
Monday, August 31, 2009
5:01 PM
Java home
No comments
0 comments:
Post a Comment