November 2019
Beginner
804 pages
20h 1m
English
When a field within a class has the type of a class or interface, objects of that class will be able to hold a reference to objects of another class. This is called an association.
As soon as you create such associations, you are composing OO elements together. Effectively, when you do so, you are reusing other elements to provide some or all of the functionality that you need.
Composition is, of course, central to OO code since it is natural to decompose complex systems into ...
Read now
Unlock full access