📞 0339-0387701 (WhatsApp) Contact

« Back to Software Engineering (NCCIA)

Encapsulation means:

A. Separating data from all operations
B. Making all data public
C. Deleting private data
D. Bundling data and the operations on it together and hiding internal state ✅

Correct Answer: D. Bundling data and the operations on it together and hiding internal state

Explanation

  • Encapsulation wraps state with its methods and controls access
  • It protects invariants and limits ripple effects.