Fubeus Technology interview question

Explain factory method in UVM