BankAccount class name
-owner: String
-balance: double
attributes · data
+deposit(amount: double)
+withdraw(amount: double)
+getBalance(): double
operations · methods
part 1 / 4
Read any box top to bottom: name → data → actions. The little + - # in front of each line says who's allowed to touch it.
Click a line above
Each line connects two classes. The shape of its end tells you how tightly they're tied — from a plain line ("knows about") all the way to a filled diamond ("owns; they share one fate").
The diamond sits on the whole. Hollow ◇ = parts survive on their own. Filled ◆ = parts die with the whole.