G-P Interview Question

Explain Factory method design pattern.