100% found this document useful (1 vote)
716 views

Evolution of Oop

The document traces the evolution of programming paradigms from unstructured programming to object-oriented programming (OOP). Early unstructured programming involved writing entire programs in a single file without structure, making programs difficult to maintain as they grew larger. Procedural programming introduced modularity through functions but data was still global. Modular programming grouped common functions into modules but modules had explicit creation/destruction and could only handle one state at a time. OOP addressed these issues by defining programs as collections of objects that encapsulate both data and functions, and can interact while maintaining their own data and life cycles independently.

Uploaded by

SureshVasudev
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
716 views

Evolution of Oop

The document traces the evolution of programming paradigms from unstructured programming to object-oriented programming (OOP). Early unstructured programming involved writing entire programs in a single file without structure, making programs difficult to maintain as they grew larger. Procedural programming introduced modularity through functions but data was still global. Modular programming grouped common functions into modules but modules had explicit creation/destruction and could only handle one state at a time. OOP addressed these issues by defining programs as collections of objects that encapsulate both data and functions, and can interact while maintaining their own data and life cycles independently.

Uploaded by

SureshVasudev
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

Evolution of

Programming

OOP

Why we need OOP ?

What lead to OOP ?

Evolution of Programming (EP)

Your thoughts?

EP: Unstructured Programming


-------------------------------------------------------------------------------------------------------------------------

Whole program in one file as a


sequence of commands
Faster Execution
Difficulty to maintain as Program
grows larger
All data is global
Repeating Sequence needs to be
copied at required locations

EP: Procedural Programming


--------------------funtion a ()
{------}

----------------------------------------------------funtion b ()
{------}

---------------------

Write repeating sequence in one


place
More Structured
Error Free
They MUST be separately
available to each program.
Procedures cannot be shared by
multiple programs

EP: Modular Programming


Main
Program-----------------------------------------------

Module-2
Module-1

Procedures of common functionality are


grouped together.
Modules can be separate and outside the
main program.
Each module have its own data and manages
its state.
They can be programmed and tested
independently

EP: Modular Programming


Explicit creation and destruction.
Operations and Data decoupled, so need to
be well orchestrated during invoking.
Operation centric .
Missing Type Safety {What data can be
passed}
Each module can have only one state at a
time (E.g.: A module to handle date operation
can deal with one date at any time)

EP

Any Solution ?

How we solve our


day-2-day problems

EP

OOP

EP

Why these problems


are addressed
initially?
Why we need to
Evolve?

EP

EP

Hello OOP!!!

OOP
Object-1
data

Object-3
data

Object-2
data

Object can interact with each other


Object maintain its own data
Each Object implements its own module
Object can initialize and destroy itself
correctly

Thank You

You might also like