Try the same model with your own values. No checks, nothing recorded.
Back to Encapsulation: guarding an object's data
The guarded bank account from the tutorial. Try to break its rule: withdraw more than the balance, deposit a negative amount, or open an account below zero, and read each refusal. Then add a rule of your own, such as a largest single withdrawal of 1000, and check it in the right method. Reset brings the starter back.
Python runs here. Java is shown for reading; paste it into a Java tool on your computer to run it.