Professional Documents
Culture Documents
Oops Over
Oops Over
Oops Over
Object-Oriented Programming
An Overview
& %
OOP-1
' $
Contents
• OOP languages
& %
OOP-2
' $
& %
OOP-3
' $
& %
OOP-4
' $
• Maintenance automation
& %
OOP-5
' $
• Data abstraction
• Encapsulation
• Classification
• Inheritance
• Polymorphism
& %
OOP-6
' $
OOP Characteristics
• Class definitions
• Generic classes
• Class libraries
& %
OOP-7
' $
OOP Languages
• Simula
• Modula
• Smalltalk
• Ada
• Objective-C
• Standard C++
• Java
• Procedural Programming :
• OOP :
& %
OOP-9
' $
Class Definition
& %
OOP-10
' $
An Object
Public
Method Internal
call working
interface
& %
OOP-11
' $
Inheritance Example
Auto Sedan
Doors Trunk
Wheels
Tires
& %
OOP-12
' $
Inheritance Example
& %
OOP-13
' $
Inheritance Example
& %
OOP-14
' $
Inheritance Concepts
• Single inheritance
• Partial inheritance
• Multiple inheritance
• Inheritance chain
& %
OOP-15
' $
Generic Classes
• Container class
& %
OOP-16
' $
Reusability Considerations
& %
OOP-17
' $
Design Approaches
• Procedural decomposition
• Data decomposition
• Object-oriented decomposition
& %
OOP-18
' $
Procedural Decomposition
• Decomposition procedural-oriented
& %
OOP-19
' $
& %
OOP-20
' $
Advantages
• Responsive to changes
• Encapsulation
• Easy to understand
• Off-the-shelf software
& %
OOP-22
' $
Potential Disadvantages
• Over generalization
• Unnecessary complications
& %
OOP-23