We invite you to read this article to learn more about the Factory Process – Design Pattern. We will describe what it actually is, the issues it resolves, its advantages and disadvantages, and how to use it in Delphi.
https://www.softacom.com/blog/factory_method_pattern_in_delphi/