1.

When Will You Use A Factory Pattern?

Answer»

The factory pattern is PREFERRED in the following cases: - a class does not know which class of objects it must CREATE - factory pattern can be used where we need to create an object of any one of sub-classes DEPENDING on the DATA provided

The factory pattern is preferred in the following cases: - a class does not know which class of objects it must create - factory pattern can be used where we need to create an object of any one of sub-classes depending on the data provided



Discussion

No Comment Found