X hits on this document

168 views

0 shares

0 downloads

0 comments

4 / 46

© S. Uchitel, 2004

4

Objects: State and Behaviour

The state of an object is given by the value of its fields (sometimes called attributes)

Behaviour is provided by methods

start()

stop()

open()

move(direction)

turn(angle)

emilsCar

colour= “blue”

model= “Fiesta”

fuelCapacity=45

These are

fields

These are

methods

Document info
Document views168
Page views168
Page last viewedMon Jan 23 13:04:34 UTC 2017
Pages46
Paragraphs816
Words2901

Comments