Lecture 2
Bank object’s fields (picture)
“Engulf and Devour”
int
200
int
200
BankAccount
balance:
BankAccount
balance:
Terminal
String
bankName:
Bank
BankAccount
account1:
BankAccount
account2:
Terminal
atm:
999
200
int
int
name of field
type of field
value
when value is another object, use an arrow
type of object
type of object