Question OOP-ENC-0013
MediumWhich design best follows encapsulation for a bank account's balance?
- A.
A static public balance
- B.
A private balance with deposit() and withdraw() methods that check the amount
- C.
Sign up free to see the answer and a step-by-step explanation.