Q. It is also known as Virtual Constructor and it is used to define an interface for creating an object but letting the subclass decide which class to instantiate, this pattern is : (Solved)

1. builder

2. abstract factory

3. prototype

4. factory method

  • d. factory method
Subscribe Now

Get All Updates & News