SlideShare a Scribd company logo
2
Most read
3
Most read
10
Most read
Object Oriented
Programming
Introduction to oop
 Object-oriented programming (OOP) is a
programming paradigm using "objects" – data
structures consisting of data fields and methods
together with their interactions – to design
applications and computer programs. Programming
techniques may include features such as data
abstraction, encapsulation, messaging, modularity,
polymorphism, and inheritance. Many modern
programming languages now support OOP.
Programming paradigm :
A programming paradigm is a fundamental style
of computer programming. Paradigms differ in
the concepts and abstractions used to
represent the elements of a program (such as
objects, functions, variables, constraints, etc.)
and the steps that compose a computation
(assignment, evaluation, continuations, data
flows, etc.).
Classes:
In object-oriented programming, a class is a construct that is used as a
blueprint to create instances of the class (class instances, class objects,
instance objects or just objects). A class defines constituent members which
enable class instances to have state and behavior. Data field members
(member variables or instance variables) enable a class object to maintain
state. Other kinds of members, especially methods, enable a class object's
behavior. Class instances are of the type of the associated class.
For example, an instance of the class "Fruit" (a "Fruit" object) would be of
the type "Fruit". A class usually represents a noun, such as a person, place or
(possibly quite abstract) thing. Programming languages that include classes as
a programming construct subtly differ in their support for various class-
related features. Most support various forms of class inheritance. Many
languages also support advanced encapsulation control features, such as
access specifiers.
Object:
Object is an run time entity.
Is an Instance of class
Represents a Place ,Person ,anything that have
some attributes.
Objects and Instances:
There is a very important distinction between an
object and an instance of an object. An object is
actually a definition, or a template for instances
of that object. An instance of an object is an
actual thing that can be manipulated. For
instance, we could define a Person object, which
may include such member data as hair color, eye
color, height, weight, etc. An instance of this
object could be "Dave" and Dave has values for
hair color, eye color, etc. This allows for multiple
instances of an object to be created.
Data Encapsulation and Abstraction:
Data encapsulation, sometimes referred to as data hiding.
Data Encapsulation and Data Abstraction is one of the most striking feature of
object oriented programming.
The wrapping up of data and code into a single unit is called data encapsulation.
The data is not accessible to the outside world only those functions which are
wrapped into a class can only access the private data of the class.
Contd…
The concept of data encapsulation is supported in C++
through the use of the public, protected and private
keywords which are placed in the declaration of the class.
Note :
Anything in the class placed after the public keyword is
accessible to all the users of the class
Elements placed after the protected keyword are
accessible only to the methods of the class or classes
derived from that class
Elements placed after the private keyword are accessible
only to the methods of the class.
Inheritance :
Inheritance is one of the most striking feature of
object oriented programming.
Inheritance is the process by which one class can
acquire the properties of another class.
The new classes, known as subclasses (or derived
classes), inherit attributes and behavior of the
pre-existing classes, which are referred to as
superclasses (or ancestor classes). The inheritance
relationships of classes gives rise to a hierarchy
Contd…
A superclass, base class, or parent class is a class
from which other classes are derived. The classes
that are derived from a superclass are known as
child classes, derived classes, or subclasses.
In object-oriented programming (OOP),
inheritance is a way to compartmentalize and
reuse code by creating collections of attributes
and behaviors called objects which can be based
on previously created objects.

More Related Content

Similar to Object Oriented Programming fundamentals.pptx (20)

PPT
OOP intro.ppt
NoreenNyauchiSarai1
 
PDF
L1-Introduction to OOPs concepts.pdf
BhanuJatinSingh
 
PPTX
OOSD Lecture 1-1.pptx FOR ENGINEERING STUDENTS
RajendraKumarRajouri1
 
PDF
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
ApurvaLaddha
 
PPT
Lecture 2
emailharmeet
 
PPTX
object oriented programming(oops)
HANISHTHARWANI21BCE1
 
PPTX
Basic concept of oops
Padma Kannan
 
PPTX
Chapter 04 object oriented programming
Praveen M Jigajinni
 
PPTX
oop.pptx
KabitaParajuli3
 
PPT
Java Fundamentalojhgghjjjjhhgghhjjjjhhj.ppt
akashsachu221
 
PPTX
Object oriented programming
Amit Soni (CTFL)
 
PPTX
Rajib Ali Presentation on object oreitation oop.pptx
domefe4146
 
PPTX
1.1-Introduction to Object oriented.pptx
naushigrdcs
 
PPT
General OOP concept [by-Digvijay]
Digvijay Singh Karakoti
 
PPT
Unit 1- Basic concept of object-oriented-programming.ppt
hannahroseline2
 
PPT
Basic concepts of oops
Chandrakiran Satdeve
 
PPTX
Object oriented programming concepts
rahuld115
 
PPTX
Object oriented programming concepts
rahuld115
 
PPTX
Principles of OOPs.pptx
LakshyaChauhan21
 
OOP intro.ppt
NoreenNyauchiSarai1
 
L1-Introduction to OOPs concepts.pdf
BhanuJatinSingh
 
OOSD Lecture 1-1.pptx FOR ENGINEERING STUDENTS
RajendraKumarRajouri1
 
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
ApurvaLaddha
 
Lecture 2
emailharmeet
 
object oriented programming(oops)
HANISHTHARWANI21BCE1
 
Basic concept of oops
Padma Kannan
 
Chapter 04 object oriented programming
Praveen M Jigajinni
 
oop.pptx
KabitaParajuli3
 
Java Fundamentalojhgghjjjjhhgghhjjjjhhj.ppt
akashsachu221
 
Object oriented programming
Amit Soni (CTFL)
 
Rajib Ali Presentation on object oreitation oop.pptx
domefe4146
 
1.1-Introduction to Object oriented.pptx
naushigrdcs
 
General OOP concept [by-Digvijay]
Digvijay Singh Karakoti
 
Unit 1- Basic concept of object-oriented-programming.ppt
hannahroseline2
 
Basic concepts of oops
Chandrakiran Satdeve
 
Object oriented programming concepts
rahuld115
 
Object oriented programming concepts
rahuld115
 
Principles of OOPs.pptx
LakshyaChauhan21
 

More from sanaiftikhar23 (8)

PPTX
Multiple Regression in machine learning.pptx
sanaiftikhar23
 
PPTX
MobApp 07 componentof screen layout.pptx
sanaiftikhar23
 
PPTX
Displaying google maps in mobileapplication.pptx
sanaiftikhar23
 
PPTX
MobApp development 01 application platform.pptx
sanaiftikhar23
 
PPTX
Visual programming is a type of programming
sanaiftikhar23
 
PPT
L21-Introduction-to-IO.ppt
sanaiftikhar23
 
PDF
fundamentals-of-algorithm-2nd-lec-170418023540.pdf
sanaiftikhar23
 
PPTX
templates.pptx
sanaiftikhar23
 
Multiple Regression in machine learning.pptx
sanaiftikhar23
 
MobApp 07 componentof screen layout.pptx
sanaiftikhar23
 
Displaying google maps in mobileapplication.pptx
sanaiftikhar23
 
MobApp development 01 application platform.pptx
sanaiftikhar23
 
Visual programming is a type of programming
sanaiftikhar23
 
L21-Introduction-to-IO.ppt
sanaiftikhar23
 
fundamentals-of-algorithm-2nd-lec-170418023540.pdf
sanaiftikhar23
 
templates.pptx
sanaiftikhar23
 
Ad

Recently uploaded (20)

PPTX
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PPTX
QUARTER 1 WEEK 2 PLOT, POV AND CONFLICTS
KynaParas
 
PPTX
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
PDF
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PPTX
Neurodivergent Friendly Schools - Slides from training session
Pooky Knightsmith
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PPTX
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
PDF
The Different Types of Non-Experimental Research
Thelma Villaflores
 
PPTX
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
PPTX
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PPTX
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PPTX
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
PDF
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
PDF
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
PDF
Geographical Diversity of India 100 Mcq.pdf/ 7th class new ncert /Social/Samy...
Sandeep Swamy
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
QUARTER 1 WEEK 2 PLOT, POV AND CONFLICTS
KynaParas
 
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
Neurodivergent Friendly Schools - Slides from training session
Pooky Knightsmith
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
The Different Types of Non-Experimental Research
Thelma Villaflores
 
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
Geographical Diversity of India 100 Mcq.pdf/ 7th class new ncert /Social/Samy...
Sandeep Swamy
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
Ad

Object Oriented Programming fundamentals.pptx

  • 2. Introduction to oop  Object-oriented programming (OOP) is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their interactions – to design applications and computer programs. Programming techniques may include features such as data abstraction, encapsulation, messaging, modularity, polymorphism, and inheritance. Many modern programming languages now support OOP.
  • 3. Programming paradigm : A programming paradigm is a fundamental style of computer programming. Paradigms differ in the concepts and abstractions used to represent the elements of a program (such as objects, functions, variables, constraints, etc.) and the steps that compose a computation (assignment, evaluation, continuations, data flows, etc.).
  • 4. Classes: In object-oriented programming, a class is a construct that is used as a blueprint to create instances of the class (class instances, class objects, instance objects or just objects). A class defines constituent members which enable class instances to have state and behavior. Data field members (member variables or instance variables) enable a class object to maintain state. Other kinds of members, especially methods, enable a class object's behavior. Class instances are of the type of the associated class. For example, an instance of the class "Fruit" (a "Fruit" object) would be of the type "Fruit". A class usually represents a noun, such as a person, place or (possibly quite abstract) thing. Programming languages that include classes as a programming construct subtly differ in their support for various class- related features. Most support various forms of class inheritance. Many languages also support advanced encapsulation control features, such as access specifiers.
  • 5. Object: Object is an run time entity. Is an Instance of class Represents a Place ,Person ,anything that have some attributes.
  • 6. Objects and Instances: There is a very important distinction between an object and an instance of an object. An object is actually a definition, or a template for instances of that object. An instance of an object is an actual thing that can be manipulated. For instance, we could define a Person object, which may include such member data as hair color, eye color, height, weight, etc. An instance of this object could be "Dave" and Dave has values for hair color, eye color, etc. This allows for multiple instances of an object to be created.
  • 7. Data Encapsulation and Abstraction: Data encapsulation, sometimes referred to as data hiding. Data Encapsulation and Data Abstraction is one of the most striking feature of object oriented programming. The wrapping up of data and code into a single unit is called data encapsulation. The data is not accessible to the outside world only those functions which are wrapped into a class can only access the private data of the class. Contd…
  • 8. The concept of data encapsulation is supported in C++ through the use of the public, protected and private keywords which are placed in the declaration of the class. Note : Anything in the class placed after the public keyword is accessible to all the users of the class Elements placed after the protected keyword are accessible only to the methods of the class or classes derived from that class Elements placed after the private keyword are accessible only to the methods of the class.
  • 9. Inheritance : Inheritance is one of the most striking feature of object oriented programming. Inheritance is the process by which one class can acquire the properties of another class. The new classes, known as subclasses (or derived classes), inherit attributes and behavior of the pre-existing classes, which are referred to as superclasses (or ancestor classes). The inheritance relationships of classes gives rise to a hierarchy Contd…
  • 10. A superclass, base class, or parent class is a class from which other classes are derived. The classes that are derived from a superclass are known as child classes, derived classes, or subclasses. In object-oriented programming (OOP), inheritance is a way to compartmentalize and reuse code by creating collections of attributes and behaviors called objects which can be based on previously created objects.