Design Patterns · Junior · Question 40 of 75
What is a God Object?
- ✓Correct answer: An object or component that knows and does too much
- 2The root
windowobject that everything else depends on - 3A user object with administrator rights in the system
Explanation
A 2,000-line component, a utils service with everything in it - they're hard to understand, test and change, and any change is risky. The cure is splitting by responsibility (SRP).