Professional Documents
Culture Documents
Chap 05
Chap 05
Learning Objectives
In this chapter you will learn
Object
Class
Basics terms used with objects
1. Object
2. Classes
Cost
Colour
Make
Model
KM 104 Page 1 of 4
Chapter 5: Object Basics
5. Messages
Messages are non-specific function calls that can invoke an object to do
something
7. Polymorphism
9. Data abstraction
KM 104 Page 2 of 4
Chapter 5: Object Basics
Motor Vehicle
Ford
11. Inheritance
A subclass can inherit behaviours and attributes from more than one superclass
A special feature of object-oriented systems is that every object has its own
unique identity
An object’s identity comes into being when the object is created and continues to
represent that object from then on
This identity never is confused with another object, even if the original object has
been deleted
The identity name never changes even if all the properties of the object change –
it is independent of the object’s state
KM 104 Page 3 of 4
Chapter 5: Object Basics
Object identity is often implemented through some kind of object identifier (OID)
or unique identifier (UID)
Object-oriented Systems Analysis & Design Using UML (Bernett, McRobb &
Farmer)
Chapter 4: What is Object-orientation?
KM 104 Page 4 of 4