This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class Call { | |
/** | |
* Note that the Creator may also provide some default implementation of the | |
* factory method. | |
*/ | |
public abstract factoryMethod(): Product; // what a factoryMethod returns is known as a product | |
/** | |
* Also note that, despite its name, the Creator's primary responsibility is | |
* not creating products. Usually, it contains some core business logic that |