February 2017
Beginner
1056 pages
28h 57m
English
I don’t like to meddle in my private affairs.
—KARL KRAUS (1874–1936)
The material in this section is not needed to understand most of the rest of this book. If you prefer, you can safely postpone reading this material until you are more comfortable with classes. This section discusses a subtle problem that can arise when defining certain kinds of classes. The problem does not apply to any class you define whose instance variables are either of a primitive type—such as int, double, char, and boolean—or of the type String. So you can define lots of classes without being concerned with this problem.
A class can have instance variables of any type, including any class type. These often can be natural ...
Read now
Unlock full access