All challenges
Multiple ChoiceBeginner 45s

Factory Method vs Abstract Factory

You need to create families of related widgets (button + checkbox) that must match per platform. Which pattern fits best?
Options
  1. 1Abstract Factory, producing consistent product families
  2. 2Factory Method, one product at a time
  3. 3Decorator, since buttons can wrap checkboxes
  4. 4Proxy, to defer widget creation

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle