A bank has three types of accounts: checking, savings, and loan. Following are the attributes for each type of account:

Question:

A bank has three types of accounts: checking, savings, and loan. Following are the attributes for each type of account:

CHECKING: Acct_No, Date_Opened, Balance, Service_Charge
SAVINGS: Acct_No, Date_Opened, Balance, Interest_Rate

LOAN: Acct_No, Date_Opened, Balance, Interest_Rate, Payment


Assume that each bank account must be a member of exactly one of these subtypes. At the end of each month, the bank computes the balance in each account and mails a statement to the customer holding that account. The balance computation depends on the type of the account. For example, a checking account balance may reflect a service charge, whereas a savings account balance may include an interest amount. Draw a class diagram to represent the situation. Your diagram should include an abstract class as well as an abstract operation for computing balance.

This problem has been solved!


Do you need an answer to a question different from the above? Ask your question!

Step by Step Answer:

Related Book For  answer-question

Modern Systems Analysis And Design

ISBN: 9781292351629

9th Global Edition

Authors: Joe Valacich, Joey George

Question Details
Chapter # 8- Structuring System Data Requirements
Section: Review question
Problem: 101
View Solution
Create a free account to access the answer
Cannot find your solution?
Post a FREE question now and get an answer within minutes. * Average response time.
Question Posted: September 28, 2023 09:01:38