Based on the requirements and use cases, identify the main objects of the system and analyze how they interact and relate to each other...
User{
id primary key,
name,
email,
address
}
Account{
accountId primary key,
account_type, (current account/ saving account)
branch_name,
IFSC_code,
balance,
user_id foreign key reference (user(id))
}
Transcation{
transactionId primary key,
transactionType, (cash / UPI / netbanking)
transactionDetails,
transaction_account_id foreign key reference (account(account_id))
}
For each class, define the attributes (data) it will hold and the methods (functions) that operate on the attributes. Ensure they align with the object's responsibilities and adhere to the principle of encapsulation. Write your code in the code editor below.
Explain design tradeoffs you considered. Check and explain whether your design adheres to SOLID principles. Explain how your design can handle changes in scale and whether it would be easy to extend with new functionalities. Identify areas for future improvement...
My design follow SOLID principles
Single Responsiblities - all classes serve single responsiblities no other things are there