Skip to main content
PProfileMatch

Object-Oriented Programming · Object-Oriented Programming: Classes, Objects and Encapsulation

Question 1 of 5

A Wallet class has a public balance field, and some code set it to a negative number. Which redesign fixes the root cause?

Tip: press 1-4 to answer, Enter to continue. Finish the quiz to bank your XP.