C Sharp (C#) - Classes and Objects
You have a class
BankAccount with a private field balance. You want to add a method Withdraw that subtracts an amount only if there is enough balance. Which method implementation correctly operates on the state safely?