intro to programming Flashcards
1
Q
object orientation
A
- collection of interacting objects
- each object is capable of sending and receiving messages and processing data.
2
Q
classes
A
-defines characteristics of an object
must include: (car)
-attributes (year, colour etc.)
-behaviours (turn(), on())
3
Q
object
A
instance (example eg. golf car) of a class
instantiation
4
Q
method
A
behaviour of an object
within a program usually only affects one object
(all cars can accelerate but program only needs golf car to accelerate)
5
Q
method call
A
process sends data to another object or asks object to invoke a method.