X hits on this document

107 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 views107
Page views107
Page last viewedTue Dec 06 10:17:15 UTC 2016
Pages46
Paragraphs816
Words2901

Comments