Skip to main content
InterviewHubPRO
Section Overview
Q17

Question 17 of 50

Part 2: Object-Oriented Design, Code Smells & Refactoring (11 - 24)

34%
SOLID & OOP Principles (50 Qs)•Part 2: Object-Oriented Design, Code Smells & Refactoring (11 - 24)

What is Primitive Obsession and how do Value Objects resolve it?

junior Levelsolid-principlesObject-Oriented Design

In Simple Words: Relying on raw primitives (string email, decimal amount) rather than domain models. A Value Object (EmailAddress, Money) encapsulates validation, formatting, and immutability.