June 2017
Beginner
1296 pages
69h 23m
English
This section introduces those design patterns associated with the Java file, streams and networking packages.
We now continue our discussion of creational design patterns.
Like the Factory Method design pattern, the Abstract Factory design pattern allows a system to determine the subclass from which to instantiate an object at runtime. Often, this subclass is unknown during development. However, Abstract Factory uses an object known as a factory that uses an interface to instantiate objects. A factory creates a product, which in this case is an object of a subclass determined at runtime.
The Java socket library in package java.net uses ...
Read now
Unlock full access