G-P interview question

Explain Factory method design pattern.