SlideShare a Scribd company logo
Data abstraction
Lesson 11
MANOLO L. GIRON
RMTU
Structure of Programming Language
Data abstraction
• refers to, providing only essential information to the outside world and hiding their
background details, i.e., to represent the needed information in program without
presenting the details.
• is a programming (and design) technique that relies on the separation of interface
and implementation.
• Abstraction separates code into interface and implementation. So while designing
your component, you must keep interface independent of the implementation so
that if you change underlying implementation then interface would remain intact
Structure of Programming Language
For example
• your program can make a call to the sort() function without knowing what
algorithm the function actually uses to sort the given values. In fact, the
underlying implementation of the sorting functionality could change
between releases of the library, and as long as the interface stays the same,
your function call will still work.
Structure of Programming Language
Benefits of Data Abstraction
• Class internals are protected from inadvertent user-level errors, which might
corrupt the state of the object.
• The class implementation may evolve over time in response to changing
requirements or bug reports without requiring change in user-level code.
Structure of Programming Language
Encapsulation
• is an Object Oriented Programming concept that binds together the data and
functions that manipulate the data, and that keeps both safe from outside
interference and misuse..
Structure of Programming Language
Exception Handlers
• The On Error statement is used specifically for unstructured exception
handling.
Structure of Programming Language
Error Handler
• The statement that can handle the error in a program.
• MsgBox("Choose a button", vbCritical+vbYesNo)
Structure of Programming Language
REFERENCES
• CONCEPTS OF
PROGRAMMING LANGUAGES
TENTH EDITION
ROBERT W. SEBESTA
Structure of Programming Language

More Related Content

PPTX
Language processors
PPTX
Programming languages
PPT
Coding
PPTX
PPT
La5 Basicelement
TXT
PPT
Study techniques of programming in C
PPTX
Language processors
Programming languages
Coding
La5 Basicelement
Study techniques of programming in C

What's hot (20)

PPTX
Logical programming languages and functional programming languages
PPTX
Programming Languages
PPTX
Programming
PPTX
Coding vs programming
DOC
Programming content
PDF
The Programming Process
ODP
Programming
PPTX
What is algorithm
PPT
Programming languages
PDF
Computer Programming: Chapter 1
PPTX
Comparative study of programming languages
PPTX
CSC103 Intro to Programming
PPT
Unit5
PDF
Exercise 6
PDF
Computer programming programming_langugages
PPT
Introduction to programming languages part 2
PPTX
Rashed almulla 11 ab
PPTX
System programming vs application programming
Logical programming languages and functional programming languages
Programming Languages
Programming
Coding vs programming
Programming content
The Programming Process
Programming
What is algorithm
Programming languages
Computer Programming: Chapter 1
Comparative study of programming languages
CSC103 Intro to Programming
Unit5
Exercise 6
Computer programming programming_langugages
Introduction to programming languages part 2
Rashed almulla 11 ab
System programming vs application programming
Ad

Similar to 11. abstraction and capsulation (20)

PPTX
a brief explanation on the topic of Imperative Programming Paradigm.pptx
PPTX
Ch1 language design issue
PDF
Lesson 1 - Data Structures and Algorithms Overview.pdf
PPTX
Ds12 140715025807-phpapp02
PPTX
Data structures using C
PPTX
data abstraction ,encapsulation,A.D.T
PPTX
Lecture 01
PPTX
chapter 1 Introduction to Ds and Algorithm Anyasis.pptx
PPTX
Lecture 1.pptx
PPTX
PCCF UNIT 2 CLASS.pptx
PPTX
FALLSEM2022-23_BCSE202L_TH_VL2022230103292_Reference_Material_II_08-08-2022_D...
PPTX
Data structure Unit-I Part A
PPT
Object oriented programming using c++
PPT
Introduction To Data Structures.ppt
PPTX
CS152 Programming Paradigm
PPT
DATA STRUCTURE AND ALGORITHMS
PPTX
Fundamental data structure
PPTX
Introduction to data_structure
PPT
Basics of data structure
a brief explanation on the topic of Imperative Programming Paradigm.pptx
Ch1 language design issue
Lesson 1 - Data Structures and Algorithms Overview.pdf
Ds12 140715025807-phpapp02
Data structures using C
data abstraction ,encapsulation,A.D.T
Lecture 01
chapter 1 Introduction to Ds and Algorithm Anyasis.pptx
Lecture 1.pptx
PCCF UNIT 2 CLASS.pptx
FALLSEM2022-23_BCSE202L_TH_VL2022230103292_Reference_Material_II_08-08-2022_D...
Data structure Unit-I Part A
Object oriented programming using c++
Introduction To Data Structures.ppt
CS152 Programming Paradigm
DATA STRUCTURE AND ALGORITHMS
Fundamental data structure
Introduction to data_structure
Basics of data structure
Ad

More from Zambales National High School (20)

PPTX
8. digital integrated circuit
PPTX
7. transformer and diode
PPTX
5. resistor and capacitor application
PPTX
4. resistor and capacitor
PPTX
2. Basic Electronics Circuit
PPTX
3. basic electrical and electronic symbol
PPTX
PPTX
9. control statement
PPTX
7. name binding and scopes
PPTX
6. describing syntax and semantics
PPTX
1. reason why study spl
PPTX
18. the components of the system unit
PPTX
17. software for home, personal, and educational
PPTX
16. graphics and multimedia software
PPTX
15. business software
8. digital integrated circuit
7. transformer and diode
5. resistor and capacitor application
4. resistor and capacitor
2. Basic Electronics Circuit
3. basic electrical and electronic symbol
9. control statement
7. name binding and scopes
6. describing syntax and semantics
1. reason why study spl
18. the components of the system unit
17. software for home, personal, and educational
16. graphics and multimedia software
15. business software

Recently uploaded (20)

PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PPTX
Digestion and Absorption of Carbohydrates, Proteina and Fats
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
Trump Administration's workforce development strategy
PDF
Indian roads congress 037 - 2012 Flexible pavement
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
Classroom Observation Tools for Teachers
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
UNIT III MENTAL HEALTH NURSING ASSESSMENT
PDF
IGGE1 Understanding the Self1234567891011
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Orientation - ARALprogram of Deped to the Parents.pptx
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
LDMMIA Reiki Yoga Finals Review Spring Summer
Digestion and Absorption of Carbohydrates, Proteina and Fats
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Trump Administration's workforce development strategy
Indian roads congress 037 - 2012 Flexible pavement
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
A systematic review of self-coping strategies used by university students to ...
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
Classroom Observation Tools for Teachers
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Practical Manual AGRO-233 Principles and Practices of Natural Farming
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
202450812 BayCHI UCSC-SV 20250812 v17.pptx
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
UNIT III MENTAL HEALTH NURSING ASSESSMENT
IGGE1 Understanding the Self1234567891011

11. abstraction and capsulation

  • 1. Data abstraction Lesson 11 MANOLO L. GIRON RMTU Structure of Programming Language
  • 2. Data abstraction • refers to, providing only essential information to the outside world and hiding their background details, i.e., to represent the needed information in program without presenting the details. • is a programming (and design) technique that relies on the separation of interface and implementation. • Abstraction separates code into interface and implementation. So while designing your component, you must keep interface independent of the implementation so that if you change underlying implementation then interface would remain intact Structure of Programming Language
  • 3. For example • your program can make a call to the sort() function without knowing what algorithm the function actually uses to sort the given values. In fact, the underlying implementation of the sorting functionality could change between releases of the library, and as long as the interface stays the same, your function call will still work. Structure of Programming Language
  • 4. Benefits of Data Abstraction • Class internals are protected from inadvertent user-level errors, which might corrupt the state of the object. • The class implementation may evolve over time in response to changing requirements or bug reports without requiring change in user-level code. Structure of Programming Language
  • 5. Encapsulation • is an Object Oriented Programming concept that binds together the data and functions that manipulate the data, and that keeps both safe from outside interference and misuse.. Structure of Programming Language
  • 6. Exception Handlers • The On Error statement is used specifically for unstructured exception handling. Structure of Programming Language
  • 7. Error Handler • The statement that can handle the error in a program. • MsgBox("Choose a button", vbCritical+vbYesNo) Structure of Programming Language
  • 8. REFERENCES • CONCEPTS OF PROGRAMMING LANGUAGES TENTH EDITION ROBERT W. SEBESTA Structure of Programming Language