Chapter 9
Constructing New Objects
IN THIS CHAPTER
Defining constructors
Using constructors in subclasses
Using Java’s default constructor features
Constructing a simple GUI from scratch
Ms. Jennie Burd
121 Schoolhouse Lane
Anywhere, Kansas
Dear Ms. Burd,
In response to your letter of June 21, I believe I can say with complete assurance that objects are not created spontaneously from nothing. Although I’ve never actually seen an object being created (and no one else in this office can claim to have seen an object in its moment of creation), I have every confidence that some process or another is responsible for the building of these interesting and useful thingamajigs. We here at ObjectsAndClasses.com support the unanimous opinions of both the scientific community and the private sector in matters of this nature. Furthermore, we agree with the recent finding of a Blue Ribbon Presidential Panel, which concludes beyond any doubt that spontaneous object creation would impede the present economic outlook.
Please be assured that I have taken all steps necessary to ensure the safety ...
Get Java For Dummies, 7th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.