📞 0339-0387701 (WhatsApp) Contact

« Back to Software Engineering (NCCIA)

Which statement distinguishes abstraction from encapsulation?

A. Abstraction hides complexity by showing essentials; encapsulation hides internal state by bundling data with methods ✅
B. They are identical
C. Encapsulation shows all detail
D. Abstraction is only for hardware

Correct Answer: A. Abstraction hides complexity by showing essentials; encapsulation hides internal state by bundling data with methods

Explanation

  • Abstraction is about what to show; encapsulation is about how to protect it
  • They are related but not the same.