13-09-2012, 11:13 AM
Object Oriented Programming
Introduction to oops.ppt (Size: 975.5 KB / Downloads: 23)
Evolution of Programming Paradigms
Complexity of software is derived from four elements
The complexity of problem domain
The difficulty of managing the developing process
The flexibility possible through software
The problems of characterizing the behaviour of discrete systems
Monolithic Programming
Consists of only global data and sequential code
Flow control is achieved through jumps(goto)
Program code is duplicated since no subroutine is employed
Suitable for developing small and simple applications
Examples: Assembly Language and Basic
Structured Programming
Emphasis on algorithm rather than data
Programs are divided into individual procedures that perform discrete tasks
Procedures are independent of each other as far as possible
Procedures have their on local data and processing logic
Parameter passing facility between the procedures for information communication
Employs top down approach
Introduction of the concepts of user defined data types
Support for modular programming
Projects can be broken up into modules and programmed independently
Scope of data items is further controlled across modules
Procedure-Oriented Programming
Conventional programming using high level languages like COBOL, FORTRAN, C, etc.
The problem is viewed as a sequence of things to be done.
The primary focus is on functions.
Procedure-oriented programming basically consists of writing a list of instructions for the computer to follow and organizing these instructions into groups known as functions.
Characteristics of Procedure-Oriented Programming
Emphasis is on doing things.
Large programs are divided into smaller programs known as functions.
Most of the functions share global data.
Data move openly around the system from function to function.
Functions transform data from one form to another.
Employs top-down approach in program design.
Object-Oriented Programming
OOP treat data as a critical element in the program development and does not allow it to flow freely around the system.
It ties data more closely to the functions that operate on it, and protects it from accidental modification from outside functions.
OOP allows decomposition of a problem into a number of entities called objects and then build data functions around these objects.
Introduction to oops.ppt (Size: 975.5 KB / Downloads: 23)
Evolution of Programming Paradigms
Complexity of software is derived from four elements
The complexity of problem domain
The difficulty of managing the developing process
The flexibility possible through software
The problems of characterizing the behaviour of discrete systems
Monolithic Programming
Consists of only global data and sequential code
Flow control is achieved through jumps(goto)
Program code is duplicated since no subroutine is employed
Suitable for developing small and simple applications
Examples: Assembly Language and Basic
Structured Programming
Emphasis on algorithm rather than data
Programs are divided into individual procedures that perform discrete tasks
Procedures are independent of each other as far as possible
Procedures have their on local data and processing logic
Parameter passing facility between the procedures for information communication
Employs top down approach
Introduction of the concepts of user defined data types
Support for modular programming
Projects can be broken up into modules and programmed independently
Scope of data items is further controlled across modules
Procedure-Oriented Programming
Conventional programming using high level languages like COBOL, FORTRAN, C, etc.
The problem is viewed as a sequence of things to be done.
The primary focus is on functions.
Procedure-oriented programming basically consists of writing a list of instructions for the computer to follow and organizing these instructions into groups known as functions.
Characteristics of Procedure-Oriented Programming
Emphasis is on doing things.
Large programs are divided into smaller programs known as functions.
Most of the functions share global data.
Data move openly around the system from function to function.
Functions transform data from one form to another.
Employs top-down approach in program design.
Object-Oriented Programming
OOP treat data as a critical element in the program development and does not allow it to flow freely around the system.
It ties data more closely to the functions that operate on it, and protects it from accidental modification from outside functions.
OOP allows decomposition of a problem into a number of entities called objects and then build data functions around these objects.