The document discusses object oriented programming and its advantages over other programming paradigms. It notes that object oriented programming uses classes and objects to make programs easier to develop collaboratively, more robust, and easier to debug. Key concepts of object oriented programming discussed are polymorphism, encapsulation, inheritance, and abstraction. The document also outlines four programming paradigms - monolithic, procedural, structured, and object oriented programming - and their characteristics.
2. To use Object oriented programming to make programs
easier to develop in teams, more robust, and easier to
debug.
To understand such features of object oriented programs
as polymorphism, encapsulation, inheritance, and
abstraction.
To be able to choose between different styles of
programming for different purposes.
Object Oriented Programming
3. Programming Paradigm
1) Monolithic Programming
• Data variables declared are global and statements are
written in sequence.
• Global data can be accessed from any portion of
program, so data is not protected.
• Concept of sub program doesn’t exist.
• Used for smaller programs.
• Ex.: BASIC and ASSEMBLY LANGUAGE
4. 2) Procedural Progarmming
• Programs are divided into number of segments known as
sub programs.
• Different program having access to same global variable,
so data is not fully protected.
• Used to develop medium sixe application.
• Ex.: FORTRAN and COBOL.
3) Structured Programming
• Layer program are develop using this paradigm.
• Programs are divided into multiple segments or
procedures.
• Each procedure has to perform different task.
• Modules access global data, so data is not fully
protected.
• User defined data type introduced.
• EX.: PASCAL and C.
5. 4) Objected Oriented Programing
• Pays more importance to data then to function.
• Programs are divided into classes and their numbers.
• New data items & functions can be accessing external
function.
• Objects can communicate with each other through
functions.