Multiple choice technology architecture

You want to encapsulate data access and manipulation in a separate layer.

  1. Encapsulation

  2. Polymorphism

  3. Inheritance

  4. Data Access object

  5. None of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The Data Access Object (DAO) pattern abstracts and encapsulates all access to a data source, separating data persistence logic from business logic. This creates a dedicated layer for database operations, making the code more maintainable and testable. Encapsulation, Polymorphism, and Inheritance are OOP principles, not patterns for data access separation.