Professional Documents
Culture Documents
Development:
Development
Using the Unified Modeling
Language
Chapter 2:
Object Basics
I am a Car.
I know my color,
manufacturer, cost,
owner and model.
I know how
to stop.
I know how
to cook myself.
B o e in g A i r p l a n e O b j e c ts
( B o e in g in s ta n c e s )
C ar
I know how to stop
stop m ethod is reusable
F ord
stop (m yM ustang)
Object-Oriented Systems Development Bahrami ? Irwin/ McGraw-Hill
Multiple Inheritance
• OO systems permit a class to inherit
from more than one superclass.
• This kind of inheritance is referred
to as multiple inheritance.
UtilityVehicle
Data
Private Protocol
Massages
Public Protocol
Object-Oriented Systems Development Bahrami ? Irwin/ McGraw-Hill
Encapsulation and Information
Hiding (Con’t)
• By providing an interface to each
object in such a way as to reveal as
little as possible about its inner
workings.
• Encapsulation protects the data
from corruption.
T e m p o ra ry O ffic e W o rk er J u n io rP ro d u c tio n W o rk e r
C o m p u te P a y ro ll C o m p u te P a y ro ll