CS FundamentalsVery hardGATE CS · TCS NQT Prime · Product Company SDE
A UI toolkit must produce whole FAMILIES of related objects (e.g. matching Button, Checkbox and Scrollbar for either a 'dark theme' or 'light theme') that must stay consistent with each other. Which pattern specifically addresses creating families of related objects, as opposed to Factory Method's single-product focus?
- A. Abstract Factory pattern
- B. Factory Method pattern (it is identical to Abstract Factory)
- C. Decorator pattern
- D. Builder pattern
Correct answer: A. Abstract Factory pattern
Abstract Factory provides an interface for creating entire families of related objects (several product types that must be used together) without specifying their concrete classes, which Factory Method (a single overridden creation method) does not address on its own.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A UML activity diagram is best suited for modelling:
- A system accepts a value from 18 to 98 inclusive. Using equivalence partitioning, what is the minimum number of test cases needed to cover…
- What distinguishes Continuous Delivery from Continuous Deployment?
- Which cloud deployment model keeps some infrastructure on-premises or in a private cloud while bursting to a public cloud for extra…
- Equivalence partitioning and boundary value analysis are both examples of which broad testing technique category?
- What is git bisect used for?