Lecture 2
5
Object oriented programming
•The (software) world consists of objects
•Each object is an instance of a class
•An object has
–fields that describe what it looks like (its state)
–methods that describe how it behaves
•One object sends a message to another asking it to use one of its methods to do some work
•Add italicized words to your vocabulary
•Illustrate these abstractions with bank example in Java