0
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

93

Published on

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
93
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "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
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×