Docsity

Abstract Factory-Design Patterns-Assignment, Exercises of Design Patterns

Toggle sidebar
bg1
ASSIGNMENT No. 1
Note: All questions carry equal marks.
Q. 1 What is a pattern? Where does the term „pattern‟ come from?
Q. 2 Explain the concept of catalogue of design pattern. How the catalogue is organized?
Q. 3 Why creational pattern is called “Abstract Factory”? What are the three key strategies in the
Abstract Factory?
Q. 4 The Abstract Factory pattern is to “provide an interface for creating families of related or dependent
objects without specifying their concrete classes.” What does this mean? Give an example.
Q. 5 Are the Singleton and the Flyweight pattern related? If yes, how? If not, why?
docsity.com

Partial preview of the text

Download Abstract Factory-Design Patterns-Assignment and more Exercises Design Patterns in PDF only on Docsity!

ASSIGNMENT No. 1

Note: All questions carry equal marks.

Q. 1 What is a pattern? Where does the term „pattern‟ come from?

Q. 2 Explain the concept of catalogue of design pattern. How the catalogue is organized?

Q. 3 Why creational pattern is called “Abstract Factory”? What are the three key strategies in the Abstract Factory?

Q. 4 The Abstract Factory pattern is to “provide an interface for creating families of related or dependent objects without specifying their concrete classes.” What does this mean? Give an example.

Q. 5 Are the Singleton and the Flyweight pattern related? If yes, how? If not, why?

docsity.com