Easy
4 views
How does encapsulation protect an object’s rules? Explain using a bank account.
Encapsulation places state and the operations that control it behind a defined interface. An account should expose deposit and withdrawal methods rather than a freely writable balance. Those methods c...
Verified Model Solution
View Full Answer