Content text CSU4301 session 2_watermark.pdf
17 Session 2 Object Oriented Programming Content Introduction, p9 2.1 Styles of Programming, p9 2.2 Evolution of New Paradigm, p11 2.3 Procedure Oriented Programming, p11 2.4 Object Oriented Programming (OOP), p13 Summary, p14 Learning outcomes, p14 Introduction A sequence of development steps should precede the implementation task for any significant application. The development of non-trivial software products is a complex task. The complexity manifests itself in the understanding of detailed customer requirements, as well as specific analysis, design and implementation techniques that are necessary to produce a high quality software product. In designing such a product the selection of programming technique and suitable languages depend on the programmer‘s interest and the complexity of the problem. There are two main programming techniques such that Procedure Oriented Programming and Object Oriented Programming. The former technique gives more emphasis on functions of the program while the latter concerns the data. This section discusses how Object Oriented Programming is a revolutionary approach in developing computer applications. To properly understand any change of this magnitude, it is best to begin with an understanding of what is being changed. The traditional programming style, known as Procedure Oriented Programming, is where the change begins. 2.1 Styles of Programming Each programming language enforces a particular style of programming. The way of organizing information is influenced by its style of programming and it is known as programming paradigm. First generation programming languages such as FORTON I, ALGOL58, etc. were used for numeric computations. Any program makes use of data. Data is represented by a variable or a constant in a program. To perform an action, an operator acts on the data. Operands and operators are combined to form expressions. Each instruction is written as a statement with the help of expressions. A sequence of statements