Structured Vs Object Oriented Programming
Structured Vs Object Oriented Programming
Content
Structured Programming
Structured vs OOP
Structured Programming
Dividing
a
problem
into
smaller
subproblems.
Each subproblem is then analyzed and a
solution for the subproblem is obtained.
The solutions to all the subproblems are
then combined to solve the overall
problem.
This process of implementing a structured
design is called structured programming.
History of C++
Extension of C
Early 1980s: Bjarne Stroustrup (Bell
Laboratories)
Originally named C with Classes.
Provides capabilities for object-oriented
programming
Objects: reusable software components
Model items in real world
Object-oriented programs
Easy to understand, correct and modify
Hybrid language
C-like style
Object-oriented style
Structured Programming
MAIN PROGRAM
FUNCTION
1
FUNCTION 4
FUNCTION 2
GLOBAL DATA
FUNCTION 3
FUNCTION 5
Using function
Function & program is divided into modules
Every module has its own data and function which can
be called by other modules.
Object 1
Data
Data
Function
Function
Object 3
Data
Function
Structured Vs OOP
Structured
OOP
Focuses on Process
Focuses on Object
Structured VS OOP
Structured VS OOP
Structured
programming
is
task-centric,
oriented programming is data-centric.
object