Week 3 Lecture 1 Objects
Week 3 Lecture 1 Objects
Daniyal A h m e d
Lecture 5
Today’s Agenda
A Person A House
A Tree A Car
Different Objects
What is Object-Orientation?
These objects interact with each other to perform different operations,
Lives in
ALI HOUSE
Drives
CAR TREE
What is a model?
A model is an abstraction of something real or conceptual.
Model Examples
Highway maps
Architectural models
Mechanical models
What is OO model?
An object is,
Something tangible (Ali, School, House, Car).
Something conceptual (that can be apprehended
intellectually for example time, date and so on…).
An object has,
State (attributes)
Well-defined behavior (operations)
Unique identity
What is an Object?
Example of Tangible Objects:
Ali
• Name • Walks
• Age • Eats
• Car
• State (attributes) • Behavior (operations)
Time
State (attributes) Behavior (operations)