abhiram

10
Object-Oriented Object-Oriented Programming Basics And Programming Basics And Difference Between OOP Difference Between OOP And POP And POP Guided By :- Guided By :- L. R. Muley Sir (HOD) Vaibhav Mehare Sir Swati Makode Madam Presented By :- Presented By :- Abhiram A. Sadhu

Upload: abhiram-sadhu

Post on 16-Apr-2017

395 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Abhiram

Object-Oriented Object-Oriented Programming Basics And Programming Basics And Difference Between OOP Difference Between OOP

And POPAnd POP

Guided By :- Guided By :- L. R. Muley Sir (HOD) Vaibhav Mehare Sir Swati Makode Madam

Presented By :- Presented By :-

Abhiram A. Sadhu

Page 2: Abhiram

Object Oriented Object Oriented ProgrammingProgramming

Object oriented program is an approach that provides a way of modularizing programs by creating partitioned memory area for both data and function that used as templates for creating copies of such modules on demand.

Page 3: Abhiram

Features of OOPFeatures of OOP Emphasis is on data rather than procedure . Programs are divided in to small modules

known as object. Data structures are designed such that they

are characterize the object. Function that operate on the data of an object

are tied together in the structure . New data and functions can be easily added

whenever necessary. Follows bottom up to approch in program

designing.

Page 4: Abhiram

Classes and ObjectsClasses and ObjectsClass : A class is a user defined data type which contains data member and member function. The internal data of a class is called data member and the function are called member function. Classes are user defined data type and behave like the in-build data types of a programming language

Object : Once a class has been declared we can create

variable of that type by using the class name. Objects are basic run time entities, in object oriented system. When program is executed, the objects interacts by sending messages to one another.

Page 5: Abhiram

Procedure Oriented Procedure Oriented ProgrammingProgramming

In procedure oriented programming ( POP) approach the problem is viewed as a sequence of things to be done, such as reading, calculating and printing. A number of functions are written to accomplish these task. The primary focus in on function.

Page 6: Abhiram

Features of POPFeatures of POP Emphasis is given on procedure

(Algorithm) Large programs are divided into smaller

programs known as functions. Most of the functions share global data. Data moves openly around the system

from function to function. Functions transforms data from one

form to another. Employs Top-Down approach in program

design.

Page 7: Abhiram

Difference BetweenDifference BetweenOOP & POPOOP & POP

* Procedure oriented programming language is action oriented.

* In procedural programming, unit of programming is function.

* In procedure oriented programming basically consists of writing a list of instructions for the computer to follow and organizing these instructions into group known as functions.

*Object oriented programming language is data oriented.

* Object are usually instantiated.

* The data of an object can be accessed only by the functions associated with that object.

Page 8: Abhiram

Cont…Cont…*Data items are mainly placed in global

* Global data are more open to an accidential change by function.

*In a large program it is very difficult what data is used by which function in a large program.

*In OOP data declare in both global as well as local

* It ties data more closely to functions that operate on it and protects it from accidental modification from outside functions.

* An object is created as a partitioned area of computer memory that stores data and set of operations that can access that data.

Page 9: Abhiram

Any Any ??

Page 10: Abhiram

Thank YouThank YouThank YouThank You