VISUAL BASIC

INTRODUCTION TO NET

APPLICATION DEVELOPMENT

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The Creational Pattern delegates the cloning process to the actual objects being cloned.
A
True
B
False
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -Explanation. Creational design patterns provide a way to create objects while hiding the creation logic, rather than instantiating objects directly using new opreator.

Detailed explanation-2: -A class creational pattern uses inheritance to vary the class that’s instantiated, whereas an object creational pattern will delegate instantiation to another object. Creational patterns become important as systems evolve to depend more on object composition than class inheritance.

Detailed explanation-3: -Prototype Pattern says that cloning of an existing object instead of creating new one and can also be customized as per the requirement. This pattern should be followed, if the cost of creating a new object is expensive and resource intensive.

Detailed explanation-4: -Prototype pattern refers to creating duplicate object while keeping performance in mind. This type of design pattern comes under creational pattern as this pattern provides one of the best ways to create an object.

Detailed explanation-5: -The Singleton Design Pattern is a Creational pattern, whose objective is to create only one instance of a class and to provide only one global access point to that object.

There is 1 question to complete.