3. Look at the following description of a problem domain:
The bank offers the following types of accounts to its customers: savings accounts,checking accounts, and money market accounts. Customers are allowed to deposit money into an account (thereby increasing its balance), withdraw money from an account
(thereby decreasing its balance), and earn interest on the account. Each account has an interest rate.
Assume that you are writing a program that will calculate the amount of interest earned for a bank account.
a. Identify the potential classes in this problem domain.
b. Refine the list to include only the necessary class or classes for this problem.
c. Identify the responsibilities of the class or classes.
a. Potential classes in this problem domain could include:
b. Refined list of necessary classes for this problem:
c. Responsibilities of the classes:
Each class will have its own set of attributes and methods specific to its responsibilities within the problem domain. The Account class will serve as the parent class for all types of accounts, providing a common interface and shared functionality, while the subclassed accounts will have additional behaviors unique to their specific types.