VISUAL BASIC

INTRODUCTION TO NET

APPLICATION DEVELOPMENT

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
This allows developers to produce families of related objects without specifying their concrete classes.
A
Prototype Pattern
B
Abstract Factory Pattern
C
Singleton Pattern
D
Creational Pattern
Explanation: 

Detailed explanation-1: -The abstract factory pattern in software engineering is a design that provides a way to create families of related objects without imposing their concrete classes, by encapsulating a group of individual factories that have a common theme without specifying their concrete classes.

Detailed explanation-2: -Factory Method pattern is responsible for creating products that belong to one family, while Abstract Factory pattern deals with multiple families of products. Factory Method uses interfaces and abstract classes to decouple the client from the generator class and the resulting products.

Detailed explanation-3: -While choosing the correct pattern, we should consider the products and the context where they’ll be used. Thus, the Abstract Factory is used where we need to have the differences between products explicit, and the Parametrized Factory is where it isn’t necessary.

There is 1 question to complete.