B
B
Blunker2017-10-10 13:07:05
PHP
Blunker, 2017-10-10 13:07:05

How to implement a single interface for getting objects?

I don't know how to describe it. In general, there is a class that generates objects of the same type. Made the heirs of this object, and each of them generates its own objects. How to make generation of all these objects through one class?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2017-10-10
@Blunker

Abstract Factory Pattern https://ru.wikipedia.org/wiki/%D0%90%D0%B1%D1%81%D... is it ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question