April 2018
Intermediate to advanced
246 pages
6h 11m
English
The next step is to create a class and define the factory method that returns the abstract product type (MessageApp, in our case). This class is considered an abstract creator. The factory method would be in the form of either an interface or the abstract method. All concrete creators must implement this factory method. The following diagram describes the complete relationship between these components:

Here, MessagingService is the creator, while EmailServices, SMSServices, and WhatsAppServices are concrete creators. Each concrete creator produces the respective ...