Introducing Construction (Chapter 14)
SOLUTION 14.1 | Special rules regarding constructors include the following.
There are also several rules governing the order of field initialization and special rules for the instantiation of arrays. |
SOLUTION 14.2 | A constructor that allows Fountain to compile is:
public Fountain(String name) { super(name); } This constructor ... |
Get Design Patterns Java™ Workbook 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.