SlideShare a Scribd company logo
1 of 18
Basic Concept of OOPBasic Concept of OOP
Ø
¡
IntroductionIntroduction
Object oriented programming is the principle of
design and development of programs using
modular approach.
◦ Object oriented programming approach provides
advantages in creation and development of software for
real life application.
◦ The basic element of object oriented programming is the
data.
◦ The programs are built by combining data and functions
that operate on the data.
◦ Some of the OOP’s languages are C++, Java, C #,
Smalltalk, Perl, and Python.
Prof. K. Adisesha 2
Procedural programmingProcedural programming
The procedural programming focuses on
processing of instructions in order to perform a
desired computation.
The top-down concepts to decompose main
functions into lower level components for modular
coding purpose.
Therefore it emphasizes more on doing things like
algorithms.
This technique is used in a conventional
programming language such as C and Pascal.
Prof. K. Adisesha 3
Object orientedObject oriented
programmingprogrammingObject oriented programming (OOP) is a concept
that combines both the data and the functions that
operate on that data into a single unit called the
object.
An object is a collection of set of data known as
member data and the functions that operate on these
data known as member function.
OOP follows bottom-up design technique.
Class is the major concept that plays important role
in this approach. Class is a template that represents a
group of objects which share common properties
and relationships. Prof. K. Adisesha 4
DifferencesDifferences
Procedural Programming Object Oriented Programming
Large programs are divided into
smaller programs known as
functions
Programs are divided into
objects
Data is not hidden and can be
accessed by external functions
Data is hidden and cannot be
accessed by external functions
Follow top down approach in the
program design
Follows bottom-up approach in
the program design
Data may communicate with
each other through functions
Objects may communicate with
each other through functions.
Emphasize is on procedure rather
than data
Emphasize is on data rather than
procedure
Prof. K. Adisesha 5
Basic Concepts of OOP’sBasic Concepts of OOP’s
Prof. K. Adisesha 6
The following are the major characteristics of OOP’s:
ObjectsObjects
Objects are basic building blocks for designing
programs.
An object is a collection of data members and
associated member functions.
An object may represent a person, place or a table
of data.
Each object is identified by
a unique name. Each object must
be a member of a particular class.
Example: Apple, orange, mango
are the objects of class fruit.
Prof. K. Adisesha 7
ClassesClasses
The objects can be made user defined data types
with the help of a class.
A class is a collection of objects that have
identical properties, common behavior and
shared relationship.
Once class is defined, any number of objects of
that class is created.
Classes are user defined data types.
A class can hold both data and functions.
For example: Planets, sun, moon
are member of class solar system.
Prof. K. Adisesha 8
Data Abstraction,Data Abstraction,
EncapsulationEncapsulation
& Data Hiding& Data HidingData Abstraction:
◦ Data Abstraction refers to the process of representing
essential features without including background details
or explanations.
Data Encapsulation:
◦ The wrapping of data and functions into a single unit
(class) is called data encapsulation.
◦ Data encapsulation enables data hiding and information
hiding.
◦ Data hiding is a method used in object oriented
programming to hide information within
computer code.
Prof. K. Adisesha 9
InheritanceInheritance
Inheritance is the process by which one object
can acquire and use the properties of another
object.
 The existing class is known as base class or super class.
 The new class is known as derived class or sub class.
 The derived class shares some of the properties of the base
class. Therefore a code from a base class can be
reused by a derived class.
Prof. K. Adisesha 10
OverloadingOverloading
Overloading allows objects to have different
meaning depending upon context.
There are two types of overloading viz.
o Operator Overloading
o Function Overloading
When an existing operator operates on new data
type is called operator overloading.
Function overloading means two or more
function have same name, but differ in the
number of arguments or data type of arguments.
Prof. K. Adisesha 11
PolymorphismPolymorphism
The ability of an operator and function to take
multiple forms is known as Polymorphism.
The different types of polymorphism are operator
overloading and function overloading.
Prof. K. Adisesha 12
Dynamic binding & MessageDynamic binding & Message
PassingPassing
Dynamic binding:
◦ Binding is the process of connecting one program to another.
◦ Dynamic binding is the process of linking the procedure call
to a specific sequence of code or function at run time or
during the execution of the program.
Message Passing:
◦ In OOP’s, processing is done by sending message to objects.
◦ A message for an object is request for execution of
procedure.
◦ Message passing involves specifying the name of the object,
the name of the function (message) and the information to be
sent.
Prof. K. Adisesha 13
Advantage of OOP’sAdvantage of OOP’s
 The programs are modularized based on the principles of classes
and objects.
 Linking code & object allows related objects to share common
code. This reduces code duplication and code reusability.
 Creation and implementation of OOP code is easy and reduces
software development time.
 The concept of data abstraction separates object specification and
object implementation.
 Data encapsulated along with functions. Therefore external non-
member function cannot access or modify data, thus proving data
security.
 Easier to develop complex software, because complexity can be
minimized through inheritance.
 OOP can communicate through message passing which makes
interface description with outside system very simple.Prof. K. Adisesha 14
Disadvantage of OOP’sDisadvantage of OOP’s
 Larger program size: OOP’s typically involves more lines of
code than procedural programs.
 Slower Programs: OOP’s typically slower than procedure
based programs, as they typically require more instructions to
be executed.
 Not suitable for all types of programs.
 To convert a real world problem into an object oriented
model is difficult.
 OOP’s software development, debugging and testing tools are
not standardized.
 Polymorphism and dynamic binding also requires processing
time, due to overload of function calls during run time.
Prof. K. Adisesha 15
Application of OOP’sApplication of OOP’s
Computer graphics applications.
CAD/CAM software
Object-oriented database.
User-Interface design such as windows
Real-time systems.
Simulation and Modeling
Artificial intelligence and expert systems.
Client-Server Systems.
Prof. K. Adisesha 16
Important Questions
2 Marks Question:
1. Explain: Classes, Objects, Data Abstraction, Data Encapsulation,
Inheritance, and Polymorphism.
2. What is Base class and derived class?
5 Marks Question:
1. Distinguish between procedural and object oriented programming.
2. Explain the characteristics of OOP’s.
3. Briefly explain the basic concepts of OOP’s.
4. Explain the advantages of OOP’s.
5. Mention disadvantages of OOP’s.
6. Write the applications of OOP’s.
Prof. K. Adisesha 17
Thank youThank you
Prof. K. Adisesha 18

More Related Content

What's hot

Inheritance in c++
Inheritance in c++Inheritance in c++
Inheritance in c++Vineeta Garg
 
FUNCTIONS IN c++ PPT
FUNCTIONS IN c++ PPTFUNCTIONS IN c++ PPT
FUNCTIONS IN c++ PPT03062679929
 
Introduction to Java -unit-1
Introduction to Java -unit-1Introduction to Java -unit-1
Introduction to Java -unit-1RubaNagarajan
 
OOP - Benefits and advantages of OOP
OOP - Benefits and advantages of OOPOOP - Benefits and advantages of OOP
OOP - Benefits and advantages of OOPMudasir Qazi
 
Classes, objects in JAVA
Classes, objects in JAVAClasses, objects in JAVA
Classes, objects in JAVAAbhilash Nair
 
Java(Polymorphism)
Java(Polymorphism)Java(Polymorphism)
Java(Polymorphism)harsh kothari
 
Object Oriented Programming
Object Oriented ProgrammingObject Oriented Programming
Object Oriented ProgrammingIqra khalil
 
linked list in data structure
linked list in data structure linked list in data structure
linked list in data structure shameen khan
 
Class and Objects in Java
Class and Objects in JavaClass and Objects in Java
Class and Objects in JavaSpotle.ai
 
Class and object in C++
Class and object in C++Class and object in C++
Class and object in C++rprajat007
 
Principles and advantages of oop ppt
Principles and advantages of oop pptPrinciples and advantages of oop ppt
Principles and advantages of oop pptdaxesh chauhan
 
C++ OOPS Concept
C++ OOPS ConceptC++ OOPS Concept
C++ OOPS ConceptBoopathi K
 
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 JavaMadishetty Prathibha
 
Characteristics of OOPS
Characteristics of OOPS Characteristics of OOPS
Characteristics of OOPS abhishek kumar
 
Basic concepts of object oriented programming
Basic concepts of object oriented programmingBasic concepts of object oriented programming
Basic concepts of object oriented programmingSachin Sharma
 
Object oriented programming c++
Object oriented programming c++Object oriented programming c++
Object oriented programming c++Ankur Pandey
 
Oop Presentation
Oop PresentationOop Presentation
Oop PresentationGhaffar Khan
 
structure and union
structure and unionstructure and union
structure and unionstudent
 

What's hot (20)

Inheritance in c++
Inheritance in c++Inheritance in c++
Inheritance in c++
 
FUNCTIONS IN c++ PPT
FUNCTIONS IN c++ PPTFUNCTIONS IN c++ PPT
FUNCTIONS IN c++ PPT
 
Introduction to Java -unit-1
Introduction to Java -unit-1Introduction to Java -unit-1
Introduction to Java -unit-1
 
OOP - Benefits and advantages of OOP
OOP - Benefits and advantages of OOPOOP - Benefits and advantages of OOP
OOP - Benefits and advantages of OOP
 
Classes, objects in JAVA
Classes, objects in JAVAClasses, objects in JAVA
Classes, objects in JAVA
 
Java(Polymorphism)
Java(Polymorphism)Java(Polymorphism)
Java(Polymorphism)
 
Object Oriented Programming
Object Oriented ProgrammingObject Oriented Programming
Object Oriented Programming
 
linked list in data structure
linked list in data structure linked list in data structure
linked list in data structure
 
Class and Objects in Java
Class and Objects in JavaClass and Objects in Java
Class and Objects in Java
 
Class and object in C++
Class and object in C++Class and object in C++
Class and object in C++
 
Interface in java
Interface in javaInterface in java
Interface in java
 
Principles and advantages of oop ppt
Principles and advantages of oop pptPrinciples and advantages of oop ppt
Principles and advantages of oop ppt
 
C++ OOPS Concept
C++ OOPS ConceptC++ OOPS Concept
C++ OOPS Concept
 
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
 
Characteristics of OOPS
Characteristics of OOPS Characteristics of OOPS
Characteristics of OOPS
 
Basic concepts of object oriented programming
Basic concepts of object oriented programmingBasic concepts of object oriented programming
Basic concepts of object oriented programming
 
Data types in c++
Data types in c++Data types in c++
Data types in c++
 
Object oriented programming c++
Object oriented programming c++Object oriented programming c++
Object oriented programming c++
 
Oop Presentation
Oop PresentationOop Presentation
Oop Presentation
 
structure and union
structure and unionstructure and union
structure and union
 

Similar to Basic concept of OOP's

Oop basic overview
Oop basic overviewOop basic overview
Oop basic overviewDeborah Akuoko
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programmingSandeep Kumar Singh
 
chapter-6-oops.pdf
chapter-6-oops.pdfchapter-6-oops.pdf
chapter-6-oops.pdfstudy material
 
Object Oriented programming - Introduction
Object Oriented programming - IntroductionObject Oriented programming - Introduction
Object Oriented programming - IntroductionMadishetty Prathibha
 
JAVA - Oops Concept.pptx
JAVA - Oops Concept.pptxJAVA - Oops Concept.pptx
JAVA - Oops Concept.pptxayankamila005
 
Object Oriented Programming using C++.pptx
Object Oriented Programming using C++.pptxObject Oriented Programming using C++.pptx
Object Oriented Programming using C++.pptxparveen837153
 
PCCF-UNIT 2-1 new.docx
PCCF-UNIT 2-1 new.docxPCCF-UNIT 2-1 new.docx
PCCF-UNIT 2-1 new.docxprakashvs7
 
POP vs OOP Introduction
POP vs OOP IntroductionPOP vs OOP Introduction
POP vs OOP IntroductionHashni T
 
Introduction to object oriented language
Introduction to object oriented languageIntroduction to object oriented language
Introduction to object oriented languagefarhan amjad
 
Principles of OOPs.pptx
Principles of OOPs.pptxPrinciples of OOPs.pptx
Principles of OOPs.pptxLakshyaChauhan21
 
1 intro
1 intro1 intro
1 introabha48
 
c++session 1.pptx
c++session 1.pptxc++session 1.pptx
c++session 1.pptxPadmaN24
 

Similar to Basic concept of OOP's (20)

Oop basic overview
Oop basic overviewOop basic overview
Oop basic overview
 
OOPS_Unit_1
OOPS_Unit_1OOPS_Unit_1
OOPS_Unit_1
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
chapter-6-oops.pdf
chapter-6-oops.pdfchapter-6-oops.pdf
chapter-6-oops.pdf
 
OOP.pptx
OOP.pptxOOP.pptx
OOP.pptx
 
Object Oriented programming - Introduction
Object Oriented programming - IntroductionObject Oriented programming - Introduction
Object Oriented programming - Introduction
 
OOP ppt.pdf
OOP ppt.pdfOOP ppt.pdf
OOP ppt.pdf
 
JAVA - Oops Concept.pptx
JAVA - Oops Concept.pptxJAVA - Oops Concept.pptx
JAVA - Oops Concept.pptx
 
Object Oriented Programming using C++.pptx
Object Oriented Programming using C++.pptxObject Oriented Programming using C++.pptx
Object Oriented Programming using C++.pptx
 
Chapter1
Chapter1Chapter1
Chapter1
 
PCCF-UNIT 2-1 new.docx
PCCF-UNIT 2-1 new.docxPCCF-UNIT 2-1 new.docx
PCCF-UNIT 2-1 new.docx
 
POP vs OOP Introduction
POP vs OOP IntroductionPOP vs OOP Introduction
POP vs OOP Introduction
 
Introduction to object oriented language
Introduction to object oriented languageIntroduction to object oriented language
Introduction to object oriented language
 
Principles of OOPs.pptx
Principles of OOPs.pptxPrinciples of OOPs.pptx
Principles of OOPs.pptx
 
JAVA PROGRAMMING
JAVA PROGRAMMING JAVA PROGRAMMING
JAVA PROGRAMMING
 
Birasa 1
Birasa 1Birasa 1
Birasa 1
 
1 intro
1 intro1 intro
1 intro
 
INTRODUCTION TO JAVA
INTRODUCTION TO JAVAINTRODUCTION TO JAVA
INTRODUCTION TO JAVA
 
JAVA PROGRAMMINGD
JAVA PROGRAMMINGDJAVA PROGRAMMINGD
JAVA PROGRAMMINGD
 
c++session 1.pptx
c++session 1.pptxc++session 1.pptx
c++session 1.pptx
 

More from Prof. Dr. K. Adisesha

Software Engineering notes by K. Adisesha.pdf
Software Engineering notes by K. Adisesha.pdfSoftware Engineering notes by K. Adisesha.pdf
Software Engineering notes by K. Adisesha.pdfProf. Dr. K. Adisesha
 
Software Engineering-Unit 1 by Adisesha.pdf
Software Engineering-Unit 1 by Adisesha.pdfSoftware Engineering-Unit 1 by Adisesha.pdf
Software Engineering-Unit 1 by Adisesha.pdfProf. Dr. K. Adisesha
 
Software Engineering-Unit 2 "Requirement Engineering" by Adi.pdf
Software Engineering-Unit 2 "Requirement Engineering" by Adi.pdfSoftware Engineering-Unit 2 "Requirement Engineering" by Adi.pdf
Software Engineering-Unit 2 "Requirement Engineering" by Adi.pdfProf. Dr. K. Adisesha
 
Software Engineering-Unit 3 "System Modelling" by Adi.pdf
Software Engineering-Unit 3 "System Modelling" by Adi.pdfSoftware Engineering-Unit 3 "System Modelling" by Adi.pdf
Software Engineering-Unit 3 "System Modelling" by Adi.pdfProf. Dr. K. Adisesha
 
Software Engineering-Unit 4 "Architectural Design" by Adi.pdf
Software Engineering-Unit 4 "Architectural Design" by Adi.pdfSoftware Engineering-Unit 4 "Architectural Design" by Adi.pdf
Software Engineering-Unit 4 "Architectural Design" by Adi.pdfProf. Dr. K. Adisesha
 
Software Engineering-Unit 5 "Software Testing"by Adi.pdf
Software Engineering-Unit 5 "Software Testing"by Adi.pdfSoftware Engineering-Unit 5 "Software Testing"by Adi.pdf
Software Engineering-Unit 5 "Software Testing"by Adi.pdfProf. Dr. K. Adisesha
 
Computer Networks Notes by -Dr. K. Adisesha
Computer Networks Notes by -Dr. K. AdiseshaComputer Networks Notes by -Dr. K. Adisesha
Computer Networks Notes by -Dr. K. AdiseshaProf. Dr. K. Adisesha
 
CCN Unit-1&2 Data Communication &Networking by K. Adiaesha
CCN Unit-1&2 Data Communication &Networking by K. AdiaeshaCCN Unit-1&2 Data Communication &Networking by K. Adiaesha
CCN Unit-1&2 Data Communication &Networking by K. AdiaeshaProf. Dr. K. Adisesha
 
CCN Unit-3 Data Link Layer by Dr. K. Adisesha
CCN Unit-3 Data Link Layer by Dr. K. AdiseshaCCN Unit-3 Data Link Layer by Dr. K. Adisesha
CCN Unit-3 Data Link Layer by Dr. K. AdiseshaProf. Dr. K. Adisesha
 
CCN Unit-4 Network Layer by Dr. K. Adisesha
CCN Unit-4 Network Layer by Dr. K. AdiseshaCCN Unit-4 Network Layer by Dr. K. Adisesha
CCN Unit-4 Network Layer by Dr. K. AdiseshaProf. Dr. K. Adisesha
 
CCN Unit-5 Transport & Application Layer by Adi.pdf
CCN Unit-5 Transport & Application Layer by Adi.pdfCCN Unit-5 Transport & Application Layer by Adi.pdf
CCN Unit-5 Transport & Application Layer by Adi.pdfProf. Dr. K. Adisesha
 
Data_structure using C-Adi.pdf
Data_structure using C-Adi.pdfData_structure using C-Adi.pdf
Data_structure using C-Adi.pdfProf. Dr. K. Adisesha
 

More from Prof. Dr. K. Adisesha (20)

Software Engineering notes by K. Adisesha.pdf
Software Engineering notes by K. Adisesha.pdfSoftware Engineering notes by K. Adisesha.pdf
Software Engineering notes by K. Adisesha.pdf
 
Software Engineering-Unit 1 by Adisesha.pdf
Software Engineering-Unit 1 by Adisesha.pdfSoftware Engineering-Unit 1 by Adisesha.pdf
Software Engineering-Unit 1 by Adisesha.pdf
 
Software Engineering-Unit 2 "Requirement Engineering" by Adi.pdf
Software Engineering-Unit 2 "Requirement Engineering" by Adi.pdfSoftware Engineering-Unit 2 "Requirement Engineering" by Adi.pdf
Software Engineering-Unit 2 "Requirement Engineering" by Adi.pdf
 
Software Engineering-Unit 3 "System Modelling" by Adi.pdf
Software Engineering-Unit 3 "System Modelling" by Adi.pdfSoftware Engineering-Unit 3 "System Modelling" by Adi.pdf
Software Engineering-Unit 3 "System Modelling" by Adi.pdf
 
Software Engineering-Unit 4 "Architectural Design" by Adi.pdf
Software Engineering-Unit 4 "Architectural Design" by Adi.pdfSoftware Engineering-Unit 4 "Architectural Design" by Adi.pdf
Software Engineering-Unit 4 "Architectural Design" by Adi.pdf
 
Software Engineering-Unit 5 "Software Testing"by Adi.pdf
Software Engineering-Unit 5 "Software Testing"by Adi.pdfSoftware Engineering-Unit 5 "Software Testing"by Adi.pdf
Software Engineering-Unit 5 "Software Testing"by Adi.pdf
 
Computer Networks Notes by -Dr. K. Adisesha
Computer Networks Notes by -Dr. K. AdiseshaComputer Networks Notes by -Dr. K. Adisesha
Computer Networks Notes by -Dr. K. Adisesha
 
CCN Unit-1&2 Data Communication &Networking by K. Adiaesha
CCN Unit-1&2 Data Communication &Networking by K. AdiaeshaCCN Unit-1&2 Data Communication &Networking by K. Adiaesha
CCN Unit-1&2 Data Communication &Networking by K. Adiaesha
 
CCN Unit-3 Data Link Layer by Dr. K. Adisesha
CCN Unit-3 Data Link Layer by Dr. K. AdiseshaCCN Unit-3 Data Link Layer by Dr. K. Adisesha
CCN Unit-3 Data Link Layer by Dr. K. Adisesha
 
CCN Unit-4 Network Layer by Dr. K. Adisesha
CCN Unit-4 Network Layer by Dr. K. AdiseshaCCN Unit-4 Network Layer by Dr. K. Adisesha
CCN Unit-4 Network Layer by Dr. K. Adisesha
 
CCN Unit-5 Transport & Application Layer by Adi.pdf
CCN Unit-5 Transport & Application Layer by Adi.pdfCCN Unit-5 Transport & Application Layer by Adi.pdf
CCN Unit-5 Transport & Application Layer by Adi.pdf
 
Introduction to Computers.pdf
Introduction to Computers.pdfIntroduction to Computers.pdf
Introduction to Computers.pdf
 
R_Programming.pdf
R_Programming.pdfR_Programming.pdf
R_Programming.pdf
 
Scholarship.pdf
Scholarship.pdfScholarship.pdf
Scholarship.pdf
 
Operating System-2 by Adi.pdf
Operating System-2 by Adi.pdfOperating System-2 by Adi.pdf
Operating System-2 by Adi.pdf
 
Operating System-1 by Adi.pdf
Operating System-1 by Adi.pdfOperating System-1 by Adi.pdf
Operating System-1 by Adi.pdf
 
Operating System-adi.pdf
Operating System-adi.pdfOperating System-adi.pdf
Operating System-adi.pdf
 
Data_structure using C-Adi.pdf
Data_structure using C-Adi.pdfData_structure using C-Adi.pdf
Data_structure using C-Adi.pdf
 
JAVA PPT -2 BY ADI.pdf
JAVA PPT -2 BY ADI.pdfJAVA PPT -2 BY ADI.pdf
JAVA PPT -2 BY ADI.pdf
 
JAVA PPT -5 BY ADI.pdf
JAVA PPT -5 BY ADI.pdfJAVA PPT -5 BY ADI.pdf
JAVA PPT -5 BY ADI.pdf
 

Recently uploaded

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
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
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
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
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 

Recently uploaded (20)

Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
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
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
CĂłdigo Creativo y Arte de Software | Unidad 1
CĂłdigo Creativo y Arte de Software | Unidad 1CĂłdigo Creativo y Arte de Software | Unidad 1
CĂłdigo Creativo y Arte de Software | Unidad 1
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 

Basic concept of OOP's

  • 1. Basic Concept of OOPBasic Concept of OOP Ø ¡
  • 2. IntroductionIntroduction Object oriented programming is the principle of design and development of programs using modular approach. ◦ Object oriented programming approach provides advantages in creation and development of software for real life application. ◦ The basic element of object oriented programming is the data. ◦ The programs are built by combining data and functions that operate on the data. ◦ Some of the OOP’s languages are C++, Java, C #, Smalltalk, Perl, and Python. Prof. K. Adisesha 2
  • 3. Procedural programmingProcedural programming The procedural programming focuses on processing of instructions in order to perform a desired computation. The top-down concepts to decompose main functions into lower level components for modular coding purpose. Therefore it emphasizes more on doing things like algorithms. This technique is used in a conventional programming language such as C and Pascal. Prof. K. Adisesha 3
  • 4. Object orientedObject oriented programmingprogrammingObject oriented programming (OOP) is a concept that combines both the data and the functions that operate on that data into a single unit called the object. An object is a collection of set of data known as member data and the functions that operate on these data known as member function. OOP follows bottom-up design technique. Class is the major concept that plays important role in this approach. Class is a template that represents a group of objects which share common properties and relationships. Prof. K. Adisesha 4
  • 5. DifferencesDifferences Procedural Programming Object Oriented Programming Large programs are divided into smaller programs known as functions Programs are divided into objects Data is not hidden and can be accessed by external functions Data is hidden and cannot be accessed by external functions Follow top down approach in the program design Follows bottom-up approach in the program design Data may communicate with each other through functions Objects may communicate with each other through functions. Emphasize is on procedure rather than data Emphasize is on data rather than procedure Prof. K. Adisesha 5
  • 6. Basic Concepts of OOP’sBasic Concepts of OOP’s Prof. K. Adisesha 6 The following are the major characteristics of OOP’s:
  • 7. ObjectsObjects Objects are basic building blocks for designing programs. An object is a collection of data members and associated member functions. An object may represent a person, place or a table of data. Each object is identified by a unique name. Each object must be a member of a particular class. Example: Apple, orange, mango are the objects of class fruit. Prof. K. Adisesha 7
  • 8. ClassesClasses The objects can be made user defined data types with the help of a class. A class is a collection of objects that have identical properties, common behavior and shared relationship. Once class is defined, any number of objects of that class is created. Classes are user defined data types. A class can hold both data and functions. For example: Planets, sun, moon are member of class solar system. Prof. K. Adisesha 8
  • 9. Data Abstraction,Data Abstraction, EncapsulationEncapsulation & Data Hiding& Data HidingData Abstraction: ◦ Data Abstraction refers to the process of representing essential features without including background details or explanations. Data Encapsulation: ◦ The wrapping of data and functions into a single unit (class) is called data encapsulation. ◦ Data encapsulation enables data hiding and information hiding. ◦ Data hiding is a method used in object oriented programming to hide information within computer code. Prof. K. Adisesha 9
  • 10. InheritanceInheritance Inheritance is the process by which one object can acquire and use the properties of another object.  The existing class is known as base class or super class.  The new class is known as derived class or sub class.  The derived class shares some of the properties of the base class. Therefore a code from a base class can be reused by a derived class. Prof. K. Adisesha 10
  • 11. OverloadingOverloading Overloading allows objects to have different meaning depending upon context. There are two types of overloading viz. o Operator Overloading o Function Overloading When an existing operator operates on new data type is called operator overloading. Function overloading means two or more function have same name, but differ in the number of arguments or data type of arguments. Prof. K. Adisesha 11
  • 12. PolymorphismPolymorphism The ability of an operator and function to take multiple forms is known as Polymorphism. The different types of polymorphism are operator overloading and function overloading. Prof. K. Adisesha 12
  • 13. Dynamic binding & MessageDynamic binding & Message PassingPassing Dynamic binding: ◦ Binding is the process of connecting one program to another. ◦ Dynamic binding is the process of linking the procedure call to a specific sequence of code or function at run time or during the execution of the program. Message Passing: ◦ In OOP’s, processing is done by sending message to objects. ◦ A message for an object is request for execution of procedure. ◦ Message passing involves specifying the name of the object, the name of the function (message) and the information to be sent. Prof. K. Adisesha 13
  • 14. Advantage of OOP’sAdvantage of OOP’s  The programs are modularized based on the principles of classes and objects.  Linking code & object allows related objects to share common code. This reduces code duplication and code reusability.  Creation and implementation of OOP code is easy and reduces software development time.  The concept of data abstraction separates object specification and object implementation.  Data encapsulated along with functions. Therefore external non- member function cannot access or modify data, thus proving data security.  Easier to develop complex software, because complexity can be minimized through inheritance.  OOP can communicate through message passing which makes interface description with outside system very simple.Prof. K. Adisesha 14
  • 15. Disadvantage of OOP’sDisadvantage of OOP’s  Larger program size: OOP’s typically involves more lines of code than procedural programs.  Slower Programs: OOP’s typically slower than procedure based programs, as they typically require more instructions to be executed.  Not suitable for all types of programs.  To convert a real world problem into an object oriented model is difficult.  OOP’s software development, debugging and testing tools are not standardized.  Polymorphism and dynamic binding also requires processing time, due to overload of function calls during run time. Prof. K. Adisesha 15
  • 16. Application of OOP’sApplication of OOP’s Computer graphics applications. CAD/CAM software Object-oriented database. User-Interface design such as windows Real-time systems. Simulation and Modeling Artificial intelligence and expert systems. Client-Server Systems. Prof. K. Adisesha 16
  • 17. Important Questions 2 Marks Question: 1. Explain: Classes, Objects, Data Abstraction, Data Encapsulation, Inheritance, and Polymorphism. 2. What is Base class and derived class? 5 Marks Question: 1. Distinguish between procedural and object oriented programming. 2. Explain the characteristics of OOP’s. 3. Briefly explain the basic concepts of OOP’s. 4. Explain the advantages of OOP’s. 5. Mention disadvantages of OOP’s. 6. Write the applications of OOP’s. Prof. K. Adisesha 17
  • 18. Thank youThank you Prof. K. Adisesha 18