Start your All-Access Pass to unlock this challenge
What is the main purpose of the Factory pattern?
To provide an interface for instantiating objects.
To encapsulate the logic of creating objects and hide the details needed for their creation.
To avoid the use of new keyword from the client side.
new
To optimize memory usage by creating only one instance of a class