Question OOP-ENC-0033
EasyWhy should a constructor validate its arguments?
- A.
To make the class abstract
- B.
Because constructors cannot have bodies
- C.
So that the object uses less memory
- D.
So that every object starts in a valid state
Sign up free to see the answer and a step-by-step explanation.