1 Oop
1 Oop
Introduction to Object
Oriented
Programming
SUSHANT BHATTARAI
1. 1 Software
Evolution
SUSHANT BHATTARAI
Software Evolution 3
SUSHANT BHATTARAI
5
Procedure oriented
programming
Each statement tells the computer to do
something.
Programs are list of statements(procedures)
Fine for easy and small programs.
6
Procedure oriented
programming
When a program becomes large, such
paradigm(method) becomes ineffective.
For this the program was broken down into
functions and modules.(Structure)
Structured programming was popular for some
decades.
7
Procedure oriented
programming
As programs grew larger, structured
programming also became ineffective.
Google The Mythical Man-Month for details.
The problem is with the procedure oriented
programming paradigm.
No matter how well structured programming is
implemented, large programs become
excessively complex.
8
Problems with Procedure Oriented
Programming
Consider an example of an inventory program.
One important global data is collection of items
in the inventory.
Various functions access this data to input a
new item, display an item, modify an item etc.
9
Problems with Procedure Oriented
Programming-Unrestricted Access
1
Problems with Procedure Oriented 0
Programming-Unrestricted Access
SUSHANT BHATTARAI
Object 2
3
SUSHANT BHATTARAI
OOP Languages 3
7
C++
Smalltalk
Java
C#.net
Python etc.
1.5 Advantages and
Disadvantages of OOP
SUSHANT BHATTARAI
OOP Good or Bad? 3
9