KEMBAR78
Class Design | PDF
0% found this document useful (0 votes)
51 views1 page

Class Design

The UML class diagram models bank accounts with a superclass of Account that has subclasses of Savings and Current. Account has attributes of account number, branch name, and account name and methods of getdata, display, and getbalance. Savings has attributes of interest rate and methods related to interest calculation while Current has an overdraft attribute and methods related to overdraft calculation.

Uploaded by

Fahim Hasan Alif
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views1 page

Class Design

The UML class diagram models bank accounts with a superclass of Account that has subclasses of Savings and Current. Account has attributes of account number, branch name, and account name and methods of getdata, display, and getbalance. Savings has attributes of interest rate and methods related to interest calculation while Current has an overdraft attribute and methods related to overdraft calculation.

Uploaded by

Fahim Hasan Alif
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Bank

Account -sav[]: Savings[10]


-cur: Current
Super class #accNo:String
#brName: String +main():void
#accName: String +getData(): void
UML Class Diagram
+display(): void
+getData(): void +getBalance(): double
+display(): void
+getBalance(): double

is-a (Generalization/Specialization)

Savings Current

-inRate: double
-overDraft: double

+getBalance(inRate:double):double +calcOverDraft(): double


+calcInterest(): double +getBalance(overdraft:double): double
+getData(): void +getData(): void
+display(): void
+display(): void
+Debit(): double +Debit():double
+Credit(): double +Credit(): double

Sub class

Member

+getData(): void
+display(): void

Teacher
Student

+getData(): void
+getData(): void +display(): void
+display(): void

You might also like