SlideShare a Scribd company logo
2
Most read
4
Most read
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.
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.).
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.
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.
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 Objects and Instances.ppt (20)

PPTX
PPT_Object Oriented Programming .pptx
MDFARHAN3070
 
PPTX
PPT_Object Oriented Programming (2).pptx
faizus786
 
PDF
OOP concepts with respected with Python
pankajdesai217634
 
PPT
General OOP concept [by-Digvijay]
Digvijay Singh Karakoti
 
PDF
L1-Introduction to OOPs concepts.pdf
BhanuJatinSingh
 
PPTX
Object oriented programming
baabtra.com - No. 1 supplier of quality freshers
 
PPT
Object-oriented concepts
BG Java EE Course
 
PPT
Java Fundamentalojhgghjjjjhhgghhjjjjhhj.ppt
akashsachu221
 
PPTX
Object oriented programming
Amit Soni (CTFL)
 
PPT
Object -oriented analysis and design.ppt
pierrerj05
 
PPTX
OOP Presentation.pptx
DurgaPrasadVasantati
 
PPTX
OOP Presentation.pptx
DurgaPrasadVasantati
 
PPT
Basic concepts of oops
Chandrakiran Satdeve
 
PDF
Object-Oriented Programming (OOP)
Ahmad karawash
 
PPTX
CPP-Unit 1.pptx
YashKoli22
 
PPTX
yo.pptxoajsdisa odasjd asodjaojdoawjdoasjdow
l226207
 
PPT
Share Unit 1- Basic concept of object-oriented-programming.ppt
hannahrroselin95
 
DOC
Chapter1
jammiashok123
 
PPTX
Lecture 1 oop
Tony Apreku
 
PPT_Object Oriented Programming .pptx
MDFARHAN3070
 
PPT_Object Oriented Programming (2).pptx
faizus786
 
OOP concepts with respected with Python
pankajdesai217634
 
General OOP concept [by-Digvijay]
Digvijay Singh Karakoti
 
L1-Introduction to OOPs concepts.pdf
BhanuJatinSingh
 
Object-oriented concepts
BG Java EE Course
 
Java Fundamentalojhgghjjjjhhgghhjjjjhhj.ppt
akashsachu221
 
Object oriented programming
Amit Soni (CTFL)
 
Object -oriented analysis and design.ppt
pierrerj05
 
OOP Presentation.pptx
DurgaPrasadVasantati
 
OOP Presentation.pptx
DurgaPrasadVasantati
 
Basic concepts of oops
Chandrakiran Satdeve
 
Object-Oriented Programming (OOP)
Ahmad karawash
 
CPP-Unit 1.pptx
YashKoli22
 
yo.pptxoajsdisa odasjd asodjaojdoawjdoasjdow
l226207
 
Share Unit 1- Basic concept of object-oriented-programming.ppt
hannahrroselin95
 
Chapter1
jammiashok123
 
Lecture 1 oop
Tony Apreku
 

Recently uploaded (20)

PPTX
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
PDF
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PPTX
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PDF
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PPTX
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
PDF
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
PDF
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
PDF
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PDF
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
Dimensions of Societal Planning in Commonism
StefanMz
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
Ad

Objects and Instances.ppt

  • 1. 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.
  • 2. 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.).
  • 3. 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.
  • 4. 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.
  • 5. 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.