Evolution of Oop

download Evolution of Oop

of 14

Transcript of Evolution of Oop

  • 8/16/2019 Evolution of Oop

    1/14

    Evolution ofProgramming

  • 8/16/2019 Evolution of Oop

    2/14

    OOP

    Why we need OOP ?

    What lead to OOP ?

  • 8/16/2019 Evolution of Oop

    3/14

    Evolution of Programming (EP)

    Your thoughts?

  • 8/16/2019 Evolution of Oop

    4/14

    EP: Unstructured Programming

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

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

    ---------

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

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

    ---------

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

    ---------

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

    ---------

    • Whole rogram in one file as ase!uence of commands

    • "aster E#ecution

    • $ifficulty to maintain as Program

    grows larger • %ll data is glo&al• 'eeating e!uence needs to &e

    coied at re!uired locations

  • 8/16/2019 Evolution of Oop

    5/14

  • 8/16/2019 Evolution of Oop

    6/14

    EP: odular Programming

    • Procedures of common functionality aregroued together+

    • odules can &e searate and outside the

    main rogram+• Each module have its own data and manages

    its state+• *hey can &e rogrammed and tested

    indeendently

    MainProgram----------

    --------

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

    ----------------odule,-

    odule,.

  • 8/16/2019 Evolution of Oop

    7/14

    EP: odular Programming

    • E#licit creation and destruction+• Oerations and $ata decouled/ so need to

    &e well orchestrated during invo0ing+

    • Oeration centric +• issing *ye afety 1What data can &e

    assed2

    • Each module can have only one state at atime (E+g+: % module to handle date oeration

    can deal with one date at any time)

  • 8/16/2019 Evolution of Oop

    8/14

    EP

     %ny olution ?

    3ow we solve our

    day,.,day ro&lems

  • 8/16/2019 Evolution of Oop

    9/14

    EP

    OOP

  • 8/16/2019 Evolution of Oop

    10/14

    EP

    Why these ro&lems

    are addressedinitially?

    Why we need to

    Evolve?

  • 8/16/2019 Evolution of Oop

    11/14

    EP

  • 8/16/2019 Evolution of Oop

    12/14

  • 8/16/2019 Evolution of Oop

    13/14

  • 8/16/2019 Evolution of Oop

    14/14