SYSTEMS DEVELOPMENT ANALYSIS
APPLICATION DEVELOPMENT PROCESSES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Singleton Pattern
|
|
Factory Method Pattern
|
|
Prototype Pattern
|
|
Abstract Factory Pattern
|
Detailed explanation-1: -Factory Method is a creational design pattern that provides an interface for creating objects in a superclass, but allows subclasses to alter the type of objects that will be created.
Detailed explanation-2: -The Factory Method defines an interface for creating objects, but lets subclasses decide which classes to instantiate. Injection molding presses demonstrate this pattern. Manufacturers of plastic toys process plastic molding powder, and inject the plastic into molds of the desired shapes.
Detailed explanation-3: -The Factory Method Pattern defines an interface for creating an object, but lets subclasses decide which class to instantiate.
Detailed explanation-4: -Factory Method Design Pattern The Factory Design Pattern or Factory Method Design Pattern is one of the most used design patterns in Java. According to GoF, this pattern “defines an interface for creating an object, but let subclasses decide which class to instantiate.
Detailed explanation-5: -Create an object by calling a factory method. This enables writing of subclasses to change the way an object is created (to redefine which class to instantiate).