SlideShare a Scribd company logo
1 of 17
OBJECT ORIENTED
PROGRAMMING
ā¬„ Introduction of Languages
ā¬„ Difference between POP and OOP
ā¬„ What is OOP?
ā¬„ Object-Oriented Programming
ā¬„ Advantages of OOP
ā¬„ Object-Oriented Programming Paradigm
ā¬„ Features of OOP
ā¬„ Applications of Object Oriented Programming
ā¬„ Benefits of Object Oriented Programming
INTRODUCTION
ā¬„ Programmers write instructions in various programming
languages to perform their computation tasks such as:
1. Machine level Language
2. Assembly level Language
3. High level Language
Machine level Language :
ā¬„ Machine language is a set of instructions executed directly by a computer's
central processing unit (CPU).
ā¬„ Each instruction performs a very specific task, such as a load, a jump, or an
ALU operation on a unit of data in a CPU register or memory.
ā¬„ Every program directly executed by a CPU is made up of a series of such
instructions.
o An assembly language (or assembler language) is a low-level programming
language for a computer, or other programmable device, in which there is a
very strong (generally one-to-one) correspondence between the language and
the architecture's machine code instructions.
o Assembly language is converted into executable machine code by a utility
program referred to as an assembler; the conversion process is referred to as
assembly, or assembling the code.
Assembly level Language :
High level Language :
ā¬„ A high-level language is a programming language designed to simplify
computer programming.
ā¬„ High-level language has a higher level of abstraction from the computer, and
focuses more on the programming logic rather than the underlying hardware
components such as memory addressing and register utilization.
ā¬„ The first high-level programming languages were designed in the 1950s.
ā¬„ Now there are dozens of different languages, including Ada, Algol, BASIC,
COBOL, C, C++, JAVA, FORTRAN, LISP, Pascal, and Prolog.
ā¬„ Such languages are considered high-level because they are closer to human
languages and farther from machine languages.
ā¬„ In contrast, assembly languages are considered low-level because they are very
close to machine languages.
ā¬„ The high-level programming languages are broadly categorized in to two
categories:
1. Procedure oriented programming(POP) language.
2. Object oriented programming(OOP) language.
Procedure Oriented Programming Language :
ā¬„ In the procedure oriented approach, the problem is viewed as sequence of
things to be done such as reading , calculation and printing.
ā¬„ Procedure oriented programming basically consist of writing a list of
instruction for the computer to follow and organizing these instruction
into groups known as functions.
The disadvantage of the procedure oriented programming languages is:
1. Global data access
2. It does not model real word problem very well
3. No data hiding
Object Oriented Programming Language :
ā¬„ Object-oriented programming (OOP) is a computer programming model that
organizes software design around data, or objects, rather than functions and
logic.
ā¬„ An object can be defined as a data field that has unique attributes and
behavior.
Difference Between Procedure Oriented Programming (POP) &
Object Oriented Programming (OOP)
Procedure Oriented Programming Object Oriented Programming
1 program is divided into small parts called functions. program is divided into parts called objects.
2 Importance is not given to data but to functions as well as
sequence of actions to be done.
Importance is given to the data rather than procedures or
functions because it works as a real world.
3 follows Top Down approach. OOP follows Bottom Up approach.
4 It does not have any access specifier. Data can move freely from
function to function in the system.
OOP has access specifiers named Public, Private,
Protected, etc.
5 Data can move freely from function to function in the system. objects can move and communicate with each other
through member functions.
6 To add new data and function in POP is not so easy. OOP provides an easy way to add new data and function.
7 Most function uses Global data for sharing that can be accessed
freely from function to function in the system.
In OOP, data can not move easily function to function, it can be
kept public or private so we can control the access of data.
8 It does not have any proper way for hiding data so it is less secure. OOP provides Data Hiding so provides more security
9 Overloading is not possible. In OOP, overloading is possible in the form of
Function Overloading and Operator Overloading.
10 Example : C, VB, FORTRAN, Pascal Example : C++, JAVA, VB.NET, C#.NET.
What is OOP?
ā¬„ OOP stands for Object-Oriented Programming.
ā¬„ Procedural programming is about writing procedures or
functions that perform operations on the data, while object-
oriented programming is about creating objects that contain
both data and functions.
Object-Oriented Programming
ā¬„ Object-oriented programming (OOP) is a programming paradigm based upon
objects (having both data and methods) that aims to incorporate the
advantages of modularity and reusability.
ā¬„ The important features of objectā€“oriented programming are āˆ’
ļ¶ Bottomā€“up approach in program design
ļ¶ Programs organized around objects, grouped in classes
ļ¶ Focus on data with methods to operate upon objectā€™s data
ļ¶ Interaction between objects through functions
ļ¶ Reusability of design through creation of new classes by adding features
to existing classes
Advantages
ā¬„ Object-oriented Programming has several advantages over
procedural programming:
ā¬„ OOP is faster and easier to execute
ā¬„ OOP provides a clear structure for the programs
ā¬„ OOP helps to keep the C++ code DRY "Don't Repeat Yourself", and
makes the code easier to maintain, modify and debug
ā¬„ OOP makes it possible to create full reusable applications with less
code and shorter development time
ā¬„ OOP treats data as a critical element in the program development
and does not allow it to flow freely around the systems.
ā¬„ 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 builds data and functions around these
objects.
ā¬„ The data of an object can be accessed only by the function
associated with that object.
ā€œļƒ¼Emphasis is on data rather than procedure.
ļƒ¼Programs are divided into what are known as objects.
ļƒ¼Data structures are designed such that they characterize the objects.
ļƒ¼Data is hidden and cannot be accessed by external functions.
ļƒ¼Objects may communicate with each other through functions.
ļƒ¼New data and functions can be easily added whenever necessary.
ļƒ¼Follows bottom-up approch in program design.
Features of object-oriented programming
Main application areas of OOP are:
ļ±User interface design such as windows, menu.
ļ±Real Time Systems
ļ±Simulation and Modeling
ļ±Object oriented databases
ļ±AI and Expert System
ļ±Neural Networks and parallel programming
ļ±Decision support and office automation systems etc.
Applications of Object Oriented Programming
ļ¶It is easy to model a real system as real objects are represented by programming objects in OOP.
ļ¶With the help of inheritance, we can reuse the existing class to derive a new class such that the
redundant code is eliminated and the use of existing class is extended. This saves time and cost of
program
ļ¶In OOP, data can be made private to a class such that only member functions of the class can access
the data.
ļ¶With the help of polymorphism, the same function or same operator can be used for different
purposes. This helps to manage software complexity easily.
ļ¶Large problems can be reduced to smaller and more manageable problems. It is easy to partition the
work in a project based on objects.
ļ¶It is possible to have multiple instances of an object to co-exist without any interference i.e. each
object has its own separate member data and function.
ā¬„ Introduction of Languages
ā¬„ Difference between POP and OOP
ā¬„ What is OOP?
ā¬„ Object-Oriented Programming
ā¬„ Advantages of OOP
ā¬„ Object-Oriented Programming Paradigm
ā¬„ Features of OOP
ā¬„ Applications of Object Oriented Programming
ā¬„ Benefits of Object Oriented Programming
THANK
YOU

More Related Content

What's hot

Introduction to oops concepts
Introduction to oops conceptsIntroduction to oops concepts
Introduction to oops conceptsNilesh Dalvi
Ā 
Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)Michelle Anne Meralpis
Ā 
C++ OOPS Concept
C++ OOPS ConceptC++ OOPS Concept
C++ OOPS ConceptBoopathi K
Ā 
Introduction to Object Oriented Programming
Introduction to Object Oriented ProgrammingIntroduction to Object Oriented Programming
Introduction to Object Oriented ProgrammingMoutaz Haddara
Ā 
Dynamic memory allocation in c++
Dynamic memory allocation in c++Dynamic memory allocation in c++
Dynamic memory allocation in c++Tech_MX
Ā 
Class and object in C++
Class and object in C++Class and object in C++
Class and object in C++rprajat007
Ā 
Nested loops
Nested loopsNested loops
Nested loopsNeeru Mittal
Ā 
Static Data Members and Member Functions
Static Data Members and Member FunctionsStatic Data Members and Member Functions
Static Data Members and Member FunctionsMOHIT AGARWAL
Ā 
Allocation of Frames & Thrashing
Allocation of Frames & ThrashingAllocation of Frames & Thrashing
Allocation of Frames & Thrashingarifmollick8578
Ā 
Conditional and control statement
Conditional and control statementConditional and control statement
Conditional and control statementnarmadhakin
Ā 
Inheritance in c++
Inheritance in c++Inheritance in c++
Inheritance in c++Vineeta Garg
Ā 
Preprocessor directives in c language
Preprocessor directives in c languagePreprocessor directives in c language
Preprocessor directives in c languagetanmaymodi4
Ā 
Oop c++class(final).ppt
Oop c++class(final).pptOop c++class(final).ppt
Oop c++class(final).pptAlok Kumar
Ā 
Characteristics of OOPS
Characteristics of OOPS Characteristics of OOPS
Characteristics of OOPS abhishek kumar
Ā 

What's hot (20)

Introduction to oops concepts
Introduction to oops conceptsIntroduction to oops concepts
Introduction to oops concepts
Ā 
Functions in C
Functions in CFunctions in C
Functions in C
Ā 
Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)
Ā 
C++ OOPS Concept
C++ OOPS ConceptC++ OOPS Concept
C++ OOPS Concept
Ā 
Function in C program
Function in C programFunction in C program
Function in C program
Ā 
Introduction to Object Oriented Programming
Introduction to Object Oriented ProgrammingIntroduction to Object Oriented Programming
Introduction to Object Oriented Programming
Ā 
enums
enumsenums
enums
Ā 
Dynamic memory allocation in c++
Dynamic memory allocation in c++Dynamic memory allocation in c++
Dynamic memory allocation in c++
Ā 
Class and object in C++
Class and object in C++Class and object in C++
Class and object in C++
Ā 
Nested loops
Nested loopsNested loops
Nested loops
Ā 
Static Data Members and Member Functions
Static Data Members and Member FunctionsStatic Data Members and Member Functions
Static Data Members and Member Functions
Ā 
Modular programming
Modular programmingModular programming
Modular programming
Ā 
Allocation of Frames & Thrashing
Allocation of Frames & ThrashingAllocation of Frames & Thrashing
Allocation of Frames & Thrashing
Ā 
Conditional and control statement
Conditional and control statementConditional and control statement
Conditional and control statement
Ā 
Inheritance in c++
Inheritance in c++Inheritance in c++
Inheritance in c++
Ā 
Preprocessor directives in c language
Preprocessor directives in c languagePreprocessor directives in c language
Preprocessor directives in c language
Ā 
Introduction to c++ ppt
Introduction to c++ pptIntroduction to c++ ppt
Introduction to c++ ppt
Ā 
Oop c++class(final).ppt
Oop c++class(final).pptOop c++class(final).ppt
Oop c++class(final).ppt
Ā 
Java programming -Object-Oriented Thinking- Inheritance
Java programming -Object-Oriented Thinking- InheritanceJava programming -Object-Oriented Thinking- Inheritance
Java programming -Object-Oriented Thinking- Inheritance
Ā 
Characteristics of OOPS
Characteristics of OOPS Characteristics of OOPS
Characteristics of OOPS
Ā 

Similar to Object Oriented programming - Introduction

Oop basic overview
Oop basic overviewOop basic overview
Oop basic overviewDeborah Akuoko
Ā 
PCCF-UNIT 2-1 new.docx
PCCF-UNIT 2-1 new.docxPCCF-UNIT 2-1 new.docx
PCCF-UNIT 2-1 new.docxprakashvs7
Ā 
PCCF UNIT 2.pptx
PCCF UNIT 2.pptxPCCF UNIT 2.pptx
PCCF UNIT 2.pptxDivyaKS12
Ā 
Unit 1 introduction to c++.pptx
Unit 1 introduction to c++.pptxUnit 1 introduction to c++.pptx
Unit 1 introduction to c++.pptxshashiden1
Ā 
PCCF UNIT 2 CLASS.pptx
PCCF UNIT 2 CLASS.pptxPCCF UNIT 2 CLASS.pptx
PCCF UNIT 2 CLASS.pptxvishnupriyapm4
Ā 
Oop in c++ lecture 1
Oop in c++  lecture 1Oop in c++  lecture 1
Oop in c++ lecture 1zk75977
Ā 
C++ notes.pdf
C++ notes.pdfC++ notes.pdf
C++ notes.pdfRajanBagale3
Ā 
Introduction to object oriented language
Introduction to object oriented languageIntroduction to object oriented language
Introduction to object oriented languagefarhan amjad
Ā 
Lecture No.1.pptx
Lecture No.1.pptxLecture No.1.pptx
Lecture No.1.pptxanzazubair91
Ā 
chapter-6-oops.pdf
chapter-6-oops.pdfchapter-6-oops.pdf
chapter-6-oops.pdfstudy material
Ā 
OOP-1.pptx
OOP-1.pptxOOP-1.pptx
OOP-1.pptxiansebuabeh
Ā 

Similar to Object Oriented programming - Introduction (20)

Oop basic overview
Oop basic overviewOop basic overview
Oop basic overview
Ā 
PCCF-UNIT 2-1 new.docx
PCCF-UNIT 2-1 new.docxPCCF-UNIT 2-1 new.docx
PCCF-UNIT 2-1 new.docx
Ā 
Abhiram
AbhiramAbhiram
Abhiram
Ā 
Unit 1
Unit 1Unit 1
Unit 1
Ā 
JAVA
JAVAJAVA
JAVA
Ā 
PCCF UNIT 2.pptx
PCCF UNIT 2.pptxPCCF UNIT 2.pptx
PCCF UNIT 2.pptx
Ā 
Unit 1 introduction to c++.pptx
Unit 1 introduction to c++.pptxUnit 1 introduction to c++.pptx
Unit 1 introduction to c++.pptx
Ā 
PCCF UNIT 2 CLASS.pptx
PCCF UNIT 2 CLASS.pptxPCCF UNIT 2 CLASS.pptx
PCCF UNIT 2 CLASS.pptx
Ā 
Lec-01.pptx
Lec-01.pptxLec-01.pptx
Lec-01.pptx
Ā 
Oop in c++ lecture 1
Oop in c++  lecture 1Oop in c++  lecture 1
Oop in c++ lecture 1
Ā 
C++ notes.pdf
C++ notes.pdfC++ notes.pdf
C++ notes.pdf
Ā 
OOP ppt.pdf
OOP ppt.pdfOOP ppt.pdf
OOP ppt.pdf
Ā 
Introduction to object oriented language
Introduction to object oriented languageIntroduction to object oriented language
Introduction to object oriented language
Ā 
Lecture No.1.pptx
Lecture No.1.pptxLecture No.1.pptx
Lecture No.1.pptx
Ā 
OOPS_Unit_1
OOPS_Unit_1OOPS_Unit_1
OOPS_Unit_1
Ā 
OOP.pptx
OOP.pptxOOP.pptx
OOP.pptx
Ā 
chapter-6-oops.pdf
chapter-6-oops.pdfchapter-6-oops.pdf
chapter-6-oops.pdf
Ā 
Oop.pptx
Oop.pptxOop.pptx
Oop.pptx
Ā 
OOP-1.pptx
OOP-1.pptxOOP-1.pptx
OOP-1.pptx
Ā 
OOP Java
OOP JavaOOP Java
OOP Java
Ā 

More from Madishetty Prathibha

More from Madishetty Prathibha (14)

Access modifiers in java
Access modifiers in javaAccess modifiers in java
Access modifiers in java
Ā 
Constructor in java
Constructor in javaConstructor in java
Constructor in java
Ā 
Control statements in java
Control statements in javaControl statements in java
Control statements in java
Ā 
Classes objects in java
Classes objects in javaClasses objects in java
Classes objects in java
Ā 
Structure of java program diff c- cpp and java
Structure of java program  diff c- cpp and javaStructure of java program  diff c- cpp and java
Structure of java program diff c- cpp and java
Ā 
Operators in java
Operators in javaOperators in java
Operators in java
Ā 
Types of datastructures
Types of datastructuresTypes of datastructures
Types of datastructures
Ā 
Introduction to algorithms
Introduction to algorithmsIntroduction to algorithms
Introduction to algorithms
Ā 
Java data types, variables and jvm
Java data types, variables and jvm Java data types, variables and jvm
Java data types, variables and jvm
Ā 
Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)
Ā 
Java Tokens
Java  TokensJava  Tokens
Java Tokens
Ā 
Oops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in JavaOops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in Java
Ā 
Java features
Java  features Java  features
Java features
Ā 
Introduction of java
Introduction  of javaIntroduction  of java
Introduction of java
Ā 

Recently uploaded

Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
Ā 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
Ā 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
Ā 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
Ā 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
Ā 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
Ā 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
Ā 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
Ā 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
Ā 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
Ā 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
Ā 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
Ā 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
Ā 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
Ā 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
Ā 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
Ā 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
Ā 
Hį»ŒC Tį»T TIįŗ¾NG ANH 11 THEO CHĘÆĘ NG TRƌNH GLOBAL SUCCESS ĐƁP ƁN CHI TIįŗ¾T - Cįŗ¢ NĂ...
Hį»ŒC Tį»T TIįŗ¾NG ANH 11 THEO CHĘÆĘ NG TRƌNH GLOBAL SUCCESS ĐƁP ƁN CHI TIįŗ¾T - Cįŗ¢ NĂ...Hį»ŒC Tį»T TIįŗ¾NG ANH 11 THEO CHĘÆĘ NG TRƌNH GLOBAL SUCCESS ĐƁP ƁN CHI TIįŗ¾T - Cįŗ¢ NĂ...
Hį»ŒC Tį»T TIįŗ¾NG ANH 11 THEO CHĘÆĘ NG TRƌNH GLOBAL SUCCESS ĐƁP ƁN CHI TIįŗ¾T - Cįŗ¢ NĂ...Nguyen Thanh Tu Collection
Ā 

Recently uploaded (20)

Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
Ā 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Ā 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
Ā 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
Ā 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
Ā 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
Ā 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
Ā 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
Ā 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
Ā 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
Ā 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
Ā 
Model Call Girl in Bikash Puri Delhi reach out to us at šŸ”9953056974šŸ”
Model Call Girl in Bikash Puri  Delhi reach out to us at šŸ”9953056974šŸ”Model Call Girl in Bikash Puri  Delhi reach out to us at šŸ”9953056974šŸ”
Model Call Girl in Bikash Puri Delhi reach out to us at šŸ”9953056974šŸ”
Ā 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
Ā 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
Ā 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
Ā 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
Ā 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
Ā 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
Ā 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
Ā 
Hį»ŒC Tį»T TIįŗ¾NG ANH 11 THEO CHĘÆĘ NG TRƌNH GLOBAL SUCCESS ĐƁP ƁN CHI TIįŗ¾T - Cįŗ¢ NĂ...
Hį»ŒC Tį»T TIįŗ¾NG ANH 11 THEO CHĘÆĘ NG TRƌNH GLOBAL SUCCESS ĐƁP ƁN CHI TIįŗ¾T - Cįŗ¢ NĂ...Hį»ŒC Tį»T TIįŗ¾NG ANH 11 THEO CHĘÆĘ NG TRƌNH GLOBAL SUCCESS ĐƁP ƁN CHI TIįŗ¾T - Cįŗ¢ NĂ...
Hį»ŒC Tį»T TIįŗ¾NG ANH 11 THEO CHĘÆĘ NG TRƌNH GLOBAL SUCCESS ĐƁP ƁN CHI TIįŗ¾T - Cįŗ¢ NĂ...
Ā 

Object Oriented programming - Introduction

  • 2. ā¬„ Introduction of Languages ā¬„ Difference between POP and OOP ā¬„ What is OOP? ā¬„ Object-Oriented Programming ā¬„ Advantages of OOP ā¬„ Object-Oriented Programming Paradigm ā¬„ Features of OOP ā¬„ Applications of Object Oriented Programming ā¬„ Benefits of Object Oriented Programming
  • 3. INTRODUCTION ā¬„ Programmers write instructions in various programming languages to perform their computation tasks such as: 1. Machine level Language 2. Assembly level Language 3. High level Language
  • 4. Machine level Language : ā¬„ Machine language is a set of instructions executed directly by a computer's central processing unit (CPU). ā¬„ Each instruction performs a very specific task, such as a load, a jump, or an ALU operation on a unit of data in a CPU register or memory. ā¬„ Every program directly executed by a CPU is made up of a series of such instructions. o An assembly language (or assembler language) is a low-level programming language for a computer, or other programmable device, in which there is a very strong (generally one-to-one) correspondence between the language and the architecture's machine code instructions. o Assembly language is converted into executable machine code by a utility program referred to as an assembler; the conversion process is referred to as assembly, or assembling the code. Assembly level Language :
  • 5. High level Language : ā¬„ A high-level language is a programming language designed to simplify computer programming. ā¬„ High-level language has a higher level of abstraction from the computer, and focuses more on the programming logic rather than the underlying hardware components such as memory addressing and register utilization. ā¬„ The first high-level programming languages were designed in the 1950s. ā¬„ Now there are dozens of different languages, including Ada, Algol, BASIC, COBOL, C, C++, JAVA, FORTRAN, LISP, Pascal, and Prolog. ā¬„ Such languages are considered high-level because they are closer to human languages and farther from machine languages. ā¬„ In contrast, assembly languages are considered low-level because they are very close to machine languages. ā¬„ The high-level programming languages are broadly categorized in to two categories: 1. Procedure oriented programming(POP) language. 2. Object oriented programming(OOP) language.
  • 6. Procedure Oriented Programming Language : ā¬„ In the procedure oriented approach, the problem is viewed as sequence of things to be done such as reading , calculation and printing. ā¬„ Procedure oriented programming basically consist of writing a list of instruction for the computer to follow and organizing these instruction into groups known as functions. The disadvantage of the procedure oriented programming languages is: 1. Global data access 2. It does not model real word problem very well 3. No data hiding
  • 7. Object Oriented Programming Language : ā¬„ Object-oriented programming (OOP) is a computer programming model that organizes software design around data, or objects, rather than functions and logic. ā¬„ An object can be defined as a data field that has unique attributes and behavior.
  • 8. Difference Between Procedure Oriented Programming (POP) & Object Oriented Programming (OOP) Procedure Oriented Programming Object Oriented Programming 1 program is divided into small parts called functions. program is divided into parts called objects. 2 Importance is not given to data but to functions as well as sequence of actions to be done. Importance is given to the data rather than procedures or functions because it works as a real world. 3 follows Top Down approach. OOP follows Bottom Up approach. 4 It does not have any access specifier. Data can move freely from function to function in the system. OOP has access specifiers named Public, Private, Protected, etc. 5 Data can move freely from function to function in the system. objects can move and communicate with each other through member functions. 6 To add new data and function in POP is not so easy. OOP provides an easy way to add new data and function. 7 Most function uses Global data for sharing that can be accessed freely from function to function in the system. In OOP, data can not move easily function to function, it can be kept public or private so we can control the access of data. 8 It does not have any proper way for hiding data so it is less secure. OOP provides Data Hiding so provides more security 9 Overloading is not possible. In OOP, overloading is possible in the form of Function Overloading and Operator Overloading. 10 Example : C, VB, FORTRAN, Pascal Example : C++, JAVA, VB.NET, C#.NET.
  • 9. What is OOP? ā¬„ OOP stands for Object-Oriented Programming. ā¬„ Procedural programming is about writing procedures or functions that perform operations on the data, while object- oriented programming is about creating objects that contain both data and functions.
  • 10. Object-Oriented Programming ā¬„ Object-oriented programming (OOP) is a programming paradigm based upon objects (having both data and methods) that aims to incorporate the advantages of modularity and reusability. ā¬„ The important features of objectā€“oriented programming are āˆ’ ļ¶ Bottomā€“up approach in program design ļ¶ Programs organized around objects, grouped in classes ļ¶ Focus on data with methods to operate upon objectā€™s data ļ¶ Interaction between objects through functions ļ¶ Reusability of design through creation of new classes by adding features to existing classes
  • 11. Advantages ā¬„ Object-oriented Programming has several advantages over procedural programming: ā¬„ OOP is faster and easier to execute ā¬„ OOP provides a clear structure for the programs ā¬„ OOP helps to keep the C++ code DRY "Don't Repeat Yourself", and makes the code easier to maintain, modify and debug ā¬„ OOP makes it possible to create full reusable applications with less code and shorter development time
  • 12. ā¬„ OOP treats data as a critical element in the program development and does not allow it to flow freely around the systems. ā¬„ 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 builds data and functions around these objects. ā¬„ The data of an object can be accessed only by the function associated with that object.
  • 13. ā€œļƒ¼Emphasis is on data rather than procedure. ļƒ¼Programs are divided into what are known as objects. ļƒ¼Data structures are designed such that they characterize the objects. ļƒ¼Data is hidden and cannot be accessed by external functions. ļƒ¼Objects may communicate with each other through functions. ļƒ¼New data and functions can be easily added whenever necessary. ļƒ¼Follows bottom-up approch in program design. Features of object-oriented programming
  • 14. Main application areas of OOP are: ļ±User interface design such as windows, menu. ļ±Real Time Systems ļ±Simulation and Modeling ļ±Object oriented databases ļ±AI and Expert System ļ±Neural Networks and parallel programming ļ±Decision support and office automation systems etc. Applications of Object Oriented Programming
  • 15. ļ¶It is easy to model a real system as real objects are represented by programming objects in OOP. ļ¶With the help of inheritance, we can reuse the existing class to derive a new class such that the redundant code is eliminated and the use of existing class is extended. This saves time and cost of program ļ¶In OOP, data can be made private to a class such that only member functions of the class can access the data. ļ¶With the help of polymorphism, the same function or same operator can be used for different purposes. This helps to manage software complexity easily. ļ¶Large problems can be reduced to smaller and more manageable problems. It is easy to partition the work in a project based on objects. ļ¶It is possible to have multiple instances of an object to co-exist without any interference i.e. each object has its own separate member data and function.
  • 16. ā¬„ Introduction of Languages ā¬„ Difference between POP and OOP ā¬„ What is OOP? ā¬„ Object-Oriented Programming ā¬„ Advantages of OOP ā¬„ Object-Oriented Programming Paradigm ā¬„ Features of OOP ā¬„ Applications of Object Oriented Programming ā¬„ Benefits of Object Oriented Programming