Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Lecture 01     Introduction           toProgramming Techniques
What are the Program Organizing                       Techniques ?There are four different techniques, they are
Unstructured ProgrammingWorking:Main program directly operates on global data.Impractical when the program gets large.The ...
Structured Programming             (Procedural Programming)   main program     procedure                                  ...
Structured Programming                  (cont.)Main program coordinates calls to proceduresand hands over appropriate data...
Modular ProgrammingProcedures of a common functionality aregrouped together into separate modules.Main program coordinates...
Problems with Structured and Modular              ProgrammingUnrestricted access to global data. Poor modeling of the real...
Object-Oriented Programming• Combine data and functions into object.  (Member Data & Member Functions)• Member functions a...
Object-Oriented Programming                   (cont.)• Object-Oriented Model
Upcoming SlideShare
Loading in …5
×

Lecture01

207 views

Published on

Published in: Education
  • Be the first to comment

  • Be the first to like this

Lecture01

  1. 1. Lecture 01 Introduction toProgramming Techniques
  2. 2. What are the Program Organizing Techniques ?There are four different techniques, they are
  3. 3. Unstructured ProgrammingWorking:Main program directly operates on global data.Impractical when the program gets large.The same statement sequence must be copied ifit is needed at different places. ….EG: for (I=1;I<=10;I++) ….. cout << ‘*’; DIS : Program becomes large …..
  4. 4. Structured Programming (Procedural Programming) main program procedure Main ( ) { add( ); subtract ( ); } Add ( )Combine a sequence of statements into aprocedure with calls and returns. { ……} Subtract( ) { …..}
  5. 5. Structured Programming (cont.)Main program coordinates calls to proceduresand hands over appropriate data as parameters.
  6. 6. Modular ProgrammingProcedures of a common functionality aregrouped together into separate modules.Main program coordinates calls to procedures inseparate modules and hands over appropriatedata as parameters.
  7. 7. Problems with Structured and Modular ProgrammingUnrestricted access to global data. Poor modeling of the real world. (Attributes andbehavior are separated - data and methods areseparated) Can’t create new data type easily.
  8. 8. Object-Oriented Programming• Combine data and functions into object. (Member Data & Member Functions)• Member functions are also called methods.• Member data are hidden within member functions.• Data Encapsulation & Data Hiding.• Objects interact by sending messages to each other.
  9. 9. Object-Oriented Programming (cont.)• Object-Oriented Model

×