Question OOP-ENC-0075
HardWhat is an invariant that a BankAccount class might enforce through encapsulation?
- A.
The balance never goes below the overdraft limit
- B.
The account number changes daily
- C.
Methods are public
- D.
The class has many fields
Sign up free to see the answer and a step-by-step explanation.