Imagine you are tasked with creating a simple banking system for a local bank. The bank wants to track basic information about customer accounts and provide functionality for deposits, withdrawals, and balance inquiries.
Implement a BankAccount class with the following attributes:
accountNumber (String)balance (double)The class should have methods for:
Account Number: [account_number]
Current Balance: $[initial_balance]
Deposit successful. New balance: $[new_balance_after_deposit]
Withdrawal successful. New balance: $[new_balance_after_withdrawal]