Bank Account System
BeginnerCreate a BankAccount class with attributes like account_number, holder_name, and balance.
Add methods deposit(amount) and withdraw(amount) (prevent negative balance). Create two account objects and perform transactions.
OOP Focus: Class, objects, attributes, methods, and basic encapsulation.
Note: This is statement-only in the current Practice version; stdout should be empty.
Loading editor...
Output
Run or submit to see output.