Skip to content
Sharp

Software Architecture · interview question

In the context of reducing abstraction in an e-commerce application's class hierarchy, which design pattern can help simplify creation of instances without exposing complex logic?

Multiple choiceMediumchapter-13-curatedpremiumsoftware-architecturepattern-abuse
Choose one answer
Answer and explanation

Correct answer

C. Factory Pattern

Why

The Factory Pattern provides a way to encapsulate the instantiation logic, thus simplifying the creation of objects. By hiding the creation details, it reduces the need for complex class hierarchies.

Test yourself on Software Architecture

A free test with instant, explained results. No account needed.

Start free test
All Software Architecture questions →