cancel
Showing results for 
Search instead for 
Did you mean: 

what is factory method

Former Member
0 Kudos

what is factory method

Accepted Solutions (0)

Answers (2)

Answers (2)

saraswathi_d
Participant
0 Kudos
Former Member
0 Kudos

Hi,

In General,

A Factory method is a static method of a class that constructs another instance of an object. It is used when the class knows more about the object than the client. Often in classes that have factory methods, are those who have private constructor(s) and other initialisation occurs before the instance is produced.

Regards,

Azaz Ali.