You're right\! Having the back button directly over the problem statement isn't ideal for readability. I've adjusted the CSS to properly position the "Back to Exam Panel" button. It will now be aligned to the left within the `container`, above the problem statement title, ensuring it's clearly visible without overlapping content. ----- ```html
You are tasked with designing and implementing a simplified Bank Account System in Java. This system must demonstrate a solid understanding of object-oriented programming (OOP) principles, including **interfaces**, **inheritance**, and **polymorphism**.
The system should be able to manage different types of bank accounts, such as Savings and Current accounts, each with its own specific behavior while sharing a common set of functionalities.
deposit(double amount): Adds a specified amount to the account.withdraw(double amount): Subtracts a specified amount from the account.getBalance(): Returns the current balance of the account.BankAccount, that declares the common methods: deposit(), withdraw(), and getBalance().SavingsAccount and CurrentAccount, that **implement** the BankAccount interface.AbstractBankAccount) to hold common fields like balance and implement the deposit method, which is common to all. The specific withdrawal logic should then be overridden in the subclasses.Main), create a variety of account objects (e.g., a SavingsAccount and a CurrentAccount) and store them in an array or a list of type BankAccount.BankAccount objects and call the withdraw() method on each. Observe how the correct, specific implementation is called at runtime for each object.Your solution must be testable. Write a Main class that performs the following test cases:
SavingsAccount with an initial balance of $1500.CurrentAccount with an initial balance of $300.List and add both a SavingsAccount and a CurrentAccount object to it.