SlideShare ist ein Scribd-Unternehmen logo
1 von 12
Key Concept of OOPs
Abhineet Anand
Abstraction
• The main purpose of using the abstraction
mechanism is to consider only those aspects of
the problem that are relevant to given purpose
• To suppress all aspects of the problem that are
not relevant.
• Feature Abstraction
• Data Abstraction
• Feature Abstraction
 A class hierarchy can be viewed as defining
several levels of abstraction, where each class is
an abstraction of its subclasses.
 The class is a simplified(abstract) representation
of its derived classes and retains only those
features that common to all its children classes
and ignores the rest of the features.
 Thus, the inheritance mechanism can be thought
of as providing feature abstruction
• Data Abstraction
 An Object itself can be considered as a data
abstraction entity.
 Its abstract out the exact way in which it stores
its various private data items.
 Provides a set of methods to other object to
access and manipulate these data items.
 Data Abstraction implies that each object hides
from other object the exact way in which it stored
its internal information is organized and
manipulated.
• Abstraction is a powerful mechanism for
reducing the perceived complexity of
software design.
Encapsulation
• The data of an object is encapsulated within its
methods.
• To access the data internal to an object, other
object have to invoke its methods, and cannot
directly access the data.
• Encapsulation offers three important advantage
as follows:
 Protection from unauthorized data access:
It protects an object’s variable from corruption by
other objects. Like : Unauthorized access,
Concurrent Access to data such as deadlock and
inconsistent values.
 Data Hiding
Hides the internal structure of an object so that all
interactions with the object are simple and
standardized.
 Weak Coupling
Enhance understandability of design.
Polymorphism
• Poly(Many)+ morphism(Forms).
• Polymorphism denotes that a method may
respond differently.
• Depends on the exact polymorphic method that
is bound.
• The parameters of methods would have to be
different for the object to respond differently.
Polymorphism can be:
• Static Polymorphism
 The same method call results inn different
actions depending on parameter type.
 Known as Static Binding.
• Dynamic Polymorphism
 Address of invoked method can be known only
at run time.
 Dynamic binding occurs when methods of the
base class overridden by the derived classes
and instances of derived classes are stored in
the instances of the base class.
Related Technical Terms
• Persistence
 Objects Usually get destroyed once a program
finishes.
 Persistent Objects are stored permanently.
• Agents
 A passive object is one that performs some
action only when requested through invocation of
some of its methods.
 An Agent(Active Object) monitors events
occurring in the application and take action.
 Used in applications for monitoring excptions.
• Widgets
 Stands for Window Object.
 Is a Primitive Object used for Graphical User
Interface(GUI) design.
 Complex GUI Widgets can be derived by basic
Widgets using inheritance mechanism.
 Maintains the internal data such as the
geometry of window, background & forground,
cursor, size, etc.
 Widgets are becoming the standard Component
of GUI design.
Advantage of OOD
The main reason for the popularity of OOD is that
it hold the following promises.
• Code and design reuse.
• Increased Productivity
• Ease of testing and maintenance
• Better code and design understandability.
The Chief Advantage of OOD is
improved productivity
• Code reuse by the use of redeveloped class
libraries.
• Code reuse due to inheritance.
• Simpler and more intuitive abstraction
• Better Problem Decomposition.

Weitere ähnliche Inhalte

Andere mochten auch (11)

String
StringString
String
 
Ndfa
NdfaNdfa
Ndfa
 
Instruction, interrupts & io processing
Instruction, interrupts & io processingInstruction, interrupts & io processing
Instruction, interrupts & io processing
 
Introduction
IntroductionIntroduction
Introduction
 
C language preliminaries
C language preliminariesC language preliminaries
C language preliminaries
 
Arrays
ArraysArrays
Arrays
 
Micro program
Micro programMicro program
Micro program
 
Finite automata
Finite automataFinite automata
Finite automata
 
Instruction code
Instruction codeInstruction code
Instruction code
 
Function in C
Function in CFunction in C
Function in C
 
Memory organization
Memory organizationMemory organization
Memory organization
 

Ähnlich wie Key concept

Oo concepts and class modeling
Oo concepts and class modelingOo concepts and class modeling
Oo concepts and class modelingPreeti Mishra
 
Unit v(dsc++)
Unit v(dsc++)Unit v(dsc++)
Unit v(dsc++)Durga Devi
 
UNIT IV DESIGN PATTERNS.pptx
UNIT IV DESIGN PATTERNS.pptxUNIT IV DESIGN PATTERNS.pptx
UNIT IV DESIGN PATTERNS.pptxanguraju1
 
Need of object oriented programming
Need of object oriented programmingNeed of object oriented programming
Need of object oriented programmingAmar Jukuntla
 
Introduction to OOP concepts
Introduction to OOP conceptsIntroduction to OOP concepts
Introduction to OOP conceptsAhmed Farag
 
OOP-1.pptx
OOP-1.pptxOOP-1.pptx
OOP-1.pptxiansebuabeh
 
SAP ABAP using OOPS - JH Softech
SAP ABAP using OOPS - JH SoftechSAP ABAP using OOPS - JH Softech
SAP ABAP using OOPS - JH SoftechVikram P Madduri
 
1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.ppt
1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.ppt1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.ppt
1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.pptsagarjsicg
 
Handout on Object orienetd Analysis and Design
Handout on Object orienetd Analysis and DesignHandout on Object orienetd Analysis and Design
Handout on Object orienetd Analysis and DesignSAFAD ISMAIL
 
L1-Introduction to OOPs concepts.pdf
L1-Introduction to OOPs concepts.pdfL1-Introduction to OOPs concepts.pdf
L1-Introduction to OOPs concepts.pdfBhanuJatinSingh
 
1 unit (oops)
1 unit (oops)1 unit (oops)
1 unit (oops)Jay Patel
 
Software_Engineering_Presentation (1).pptx
Software_Engineering_Presentation (1).pptxSoftware_Engineering_Presentation (1).pptx
Software_Engineering_Presentation (1).pptxArifaMehreen1
 
Principles of OOPs.pptx
Principles of OOPs.pptxPrinciples of OOPs.pptx
Principles of OOPs.pptxLakshyaChauhan21
 
C++ chapter 1
C++ chapter 1C++ chapter 1
C++ chapter 1jasvinder162
 
Abstraction.pptx
Abstraction.pptxAbstraction.pptx
Abstraction.pptxSamirSitaula1
 
CPP-Unit 1.pptx
CPP-Unit 1.pptxCPP-Unit 1.pptx
CPP-Unit 1.pptxYashKoli22
 
Object modeling
Object modelingObject modeling
Object modelingPreeti Mishra
 

Ähnlich wie Key concept (20)

Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Introduction
IntroductionIntroduction
Introduction
 
Oo concepts and class modeling
Oo concepts and class modelingOo concepts and class modeling
Oo concepts and class modeling
 
Unit v(dsc++)
Unit v(dsc++)Unit v(dsc++)
Unit v(dsc++)
 
UNIT IV DESIGN PATTERNS.pptx
UNIT IV DESIGN PATTERNS.pptxUNIT IV DESIGN PATTERNS.pptx
UNIT IV DESIGN PATTERNS.pptx
 
Need of object oriented programming
Need of object oriented programmingNeed of object oriented programming
Need of object oriented programming
 
Introduction to OOP concepts
Introduction to OOP conceptsIntroduction to OOP concepts
Introduction to OOP concepts
 
OOP-1.pptx
OOP-1.pptxOOP-1.pptx
OOP-1.pptx
 
SAP ABAP using OOPS - JH Softech
SAP ABAP using OOPS - JH SoftechSAP ABAP using OOPS - JH Softech
SAP ABAP using OOPS - JH Softech
 
1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.ppt
1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.ppt1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.ppt
1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.ppt
 
OOPS_Unit_1
OOPS_Unit_1OOPS_Unit_1
OOPS_Unit_1
 
Handout on Object orienetd Analysis and Design
Handout on Object orienetd Analysis and DesignHandout on Object orienetd Analysis and Design
Handout on Object orienetd Analysis and Design
 
L1-Introduction to OOPs concepts.pdf
L1-Introduction to OOPs concepts.pdfL1-Introduction to OOPs concepts.pdf
L1-Introduction to OOPs concepts.pdf
 
1 unit (oops)
1 unit (oops)1 unit (oops)
1 unit (oops)
 
Software_Engineering_Presentation (1).pptx
Software_Engineering_Presentation (1).pptxSoftware_Engineering_Presentation (1).pptx
Software_Engineering_Presentation (1).pptx
 
Principles of OOPs.pptx
Principles of OOPs.pptxPrinciples of OOPs.pptx
Principles of OOPs.pptx
 
C++ chapter 1
C++ chapter 1C++ chapter 1
C++ chapter 1
 
Abstraction.pptx
Abstraction.pptxAbstraction.pptx
Abstraction.pptx
 
CPP-Unit 1.pptx
CPP-Unit 1.pptxCPP-Unit 1.pptx
CPP-Unit 1.pptx
 
Object modeling
Object modelingObject modeling
Object modeling
 

KĂźrzlich hochgeladen

Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
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
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
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
 
18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
“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
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
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
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 

KĂźrzlich hochgeladen (20)

Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
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🔝
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
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
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
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
 
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
 
18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdf
 
“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...
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
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
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 

Key concept

  • 1. Key Concept of OOPs Abhineet Anand
  • 2. Abstraction • The main purpose of using the abstraction mechanism is to consider only those aspects of the problem that are relevant to given purpose • To suppress all aspects of the problem that are not relevant. • Feature Abstraction • Data Abstraction
  • 3. • Feature Abstraction  A class hierarchy can be viewed as defining several levels of abstraction, where each class is an abstraction of its subclasses.  The class is a simplified(abstract) representation of its derived classes and retains only those features that common to all its children classes and ignores the rest of the features.  Thus, the inheritance mechanism can be thought of as providing feature abstruction
  • 4. • Data Abstraction  An Object itself can be considered as a data abstraction entity.  Its abstract out the exact way in which it stores its various private data items.  Provides a set of methods to other object to access and manipulate these data items.  Data Abstraction implies that each object hides from other object the exact way in which it stored its internal information is organized and manipulated. • Abstraction is a powerful mechanism for reducing the perceived complexity of software design.
  • 5. Encapsulation • The data of an object is encapsulated within its methods. • To access the data internal to an object, other object have to invoke its methods, and cannot directly access the data.
  • 6. • Encapsulation offers three important advantage as follows:  Protection from unauthorized data access: It protects an object’s variable from corruption by other objects. Like : Unauthorized access, Concurrent Access to data such as deadlock and inconsistent values.  Data Hiding Hides the internal structure of an object so that all interactions with the object are simple and standardized.  Weak Coupling Enhance understandability of design.
  • 7. Polymorphism • Poly(Many)+ morphism(Forms). • Polymorphism denotes that a method may respond differently. • Depends on the exact polymorphic method that is bound. • The parameters of methods would have to be different for the object to respond differently.
  • 8. Polymorphism can be: • Static Polymorphism  The same method call results inn different actions depending on parameter type.  Known as Static Binding. • Dynamic Polymorphism  Address of invoked method can be known only at run time.  Dynamic binding occurs when methods of the base class overridden by the derived classes and instances of derived classes are stored in the instances of the base class.
  • 9. Related Technical Terms • Persistence  Objects Usually get destroyed once a program finishes.  Persistent Objects are stored permanently. • Agents  A passive object is one that performs some action only when requested through invocation of some of its methods.  An Agent(Active Object) monitors events occurring in the application and take action.  Used in applications for monitoring excptions.
  • 10. • Widgets  Stands for Window Object.  Is a Primitive Object used for Graphical User Interface(GUI) design.  Complex GUI Widgets can be derived by basic Widgets using inheritance mechanism.  Maintains the internal data such as the geometry of window, background & forground, cursor, size, etc.  Widgets are becoming the standard Component of GUI design.
  • 11. Advantage of OOD The main reason for the popularity of OOD is that it hold the following promises. • Code and design reuse. • Increased Productivity • Ease of testing and maintenance • Better code and design understandability.
  • 12. The Chief Advantage of OOD is improved productivity • Code reuse by the use of redeveloped class libraries. • Code reuse due to inheritance. • Simpler and more intuitive abstraction • Better Problem Decomposition.