SlideShare uma empresa Scribd logo
1 de 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.

Mais conteúdo relacionado

Destaque (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
 

Semelhante a Key concept

Oo concepts and class modeling
Oo concepts and class modelingOo concepts and class modeling
Oo concepts and class modelingPreeti Mishra
 
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
 
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
 
CPP-Unit 1.pptx
CPP-Unit 1.pptxCPP-Unit 1.pptx
CPP-Unit 1.pptxYashKoli22
 

Semelhante a 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
 

Último

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
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
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
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
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 

Último (20)

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
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
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
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
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
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 ...
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 

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.