Bird
Raised Fist0

Given a system where a single class handles user authentication, data storage, and notification sending, what anti-pattern does this represent?

medium๐Ÿ“ Analysis Q4 of Q15
LLD - Advanced LLD Concepts
Given a system where a single class handles user authentication, data storage, and notification sending, what anti-pattern does this represent?
AObserver Pattern
BSingleton
CFactory Pattern
DGod Object
Step-by-Step Solution
Solution:
  1. Step 1: Identify the problem

    A single class doing many unrelated tasks is a God Object anti-pattern.
  2. Step 2: Match options

    God Object fits the description; others are design patterns, not anti-patterns.
  3. Final Answer:

    God Object -> Option D
  4. Quick Check:

    Single class many tasks = God Object [OK]
Quick Trick: One class doing too much is God Object [OK]
Common Mistakes:
MISTAKES
  • Confusing God Object with Singleton
  • Thinking Factory or Observer are anti-patterns
  • Ignoring task separation principles

Want More Practice?

15+ quiz questions ยท All difficulty levels ยท Free

Free Signup - Practice All Questions
More LLD Quizzes