April 2019
Intermediate to advanced
360 pages
9h 17m
English
In order to understand the power of the loan design pattern, we will implement a file-processing application demonstrating source code before and after using the loan pattern. Our application will simulate the opening and closing of a file with an additional four processing steps. The workflow is as depicted in this diagram:

Our implementation will consist of a FileToProcess class and a Driver class. The FileToProcess class is provided next in two sections. This class contains a default constructor and six public methods, each providing console output to indicate that the method was called. ...
Read now
Unlock full access