August 2018
Intermediate to advanced
248 pages
5h 51m
English
Let's assume we are building an application where the user is going to manage and deliver content after fetching it from diverse sources, which could be:
So, here is the idea: instead of implementing several content classes, each holding the methods responsible for getting the content pieces, assembling them, and showing them inside the application, we can define an abstraction for the Resource Content and a separate interface for the objects that are responsible for fetching the content. Let's try it!
We begin with the class for our Resource Content abstraction, called ResourceContent. Then, we will need to ...