SlideShare a Scribd company logo
6
Most read
14
Most read
21
Most read
data abstraction ,encapsulation,A.D.T
Presented By-
KAPIL SHARMA (15CE024)
JATIN GANDHI (15CE021)
MADHUR SUDAN (15CE028)
 Computer program provide result by
manipulating data. It determines that
how well the data types match the
real-world problem space.
 The beginning of data type concept is
generally seen in older languages like
FORTRON and COBOL.
 The data structure of COBOL took the
first step away from the FORTRON I
model by allowing programmers to
specify the accuracy of data values
and providing a structured data type
for records of information.
 Computer hardware cannot
differentiate between a bit string
representing an integer, character or
real number. Higher language provide a
set of basic data types , such as
integer , real and character string.
 Type Checking is provided to ensure
that the operations receives proper
number of arguments of proper data
types.
 A type definition defines the
structure of a data objects with its
possible value bindings
 User defined types provide improved
readability
DATA ABSTRACTION
data abstraction ,encapsulation,A.D.T
data abstraction ,encapsulation,A.D.T
 The importance of abstraction is
derived from its ability to hide
irrelevant details.
 This allows user to use an object
with minimum information.
 It is a weapon against complexity.
 As in OOP’s each object of a class will
have external interfaces through which
it can be made use . There is no need
to look into its inner details( private
members). The internal details of the
objects are hidden which makes them
abstract. The technique of hiding
internal details in an object is called
Data Abstraction.
 Also an integral and central part of
every data abstraction is its operation,
which are defined as Process
Abstractions.
 An abstract data type(ADT), is an
encapsulation that indicates only the
data representation of one specific
data types and subprograms that
provide the operations for that type.
 An abstract data type is defined as
a mathematical model of the data
objects that make up a data type as
well as the functions that operate on
these objects.
data abstraction ,encapsulation,A.D.T
 Encapsulation
The user does not need any technical
knowledge of how the implementation works
to use the ADT. In this way, the
implementation may be complex but will be
encapsulated in a simple interface when it is
actually used.
 Localization of change
Code that uses an ADT object will not
need to be edited if the implementation of
the ADT is changed. Since any changes to
the implementation must still comply with the
interface, and since
code using an ADT object may only refer
to properties and abilities specified in
the interface, changes may be made to
the implementation without requiring any
changes in code .
 Flexibility
This gives a great deal of flexibility
when using ADT objects in different
situations. For example, different
implementations of the ADT may be
more efficient in different situations; it
is possible to use each in the situation
where they are preferable, thus
increasing overall efficiency.
 The technique of hiding the used data
structure and only provide a well-
defined interface is known as
Encapsulation.
 The wrapping up of data and functions
into a single unit is known as
Encapsulation.
 Through encapsulation the data is not
accidently corrupted by external world.
 The access specifiers defined the
accessing of data and member
functions.
15
“Don’t ask how I do it, but this is
what I can do”
- The encapsulated object
“I don’t care how, just do your job,
and I’ll do mine”
- One encapsulated object
to another
Benefits of Encapsulation
Encapsulation is a very important O-O
concept
Each object has 2 views. An internal view
and an external view
Encapsulation is a form of protection
Also called Information Hiding
The outside world does not have direct
access to the internal implementation or
representation of an object
As long as the external view does
not change, the internal view can
take on any form without affecting
the outside world
By hiding data and providing
methods to gain access to it, an
object can maintain high data
integrity
Methods have the responsibility of
maintaining data integrity
private visibility offers full
encapsulation
protected and default offer
limited encapsulation
public offers no encapsulation
data abstraction ,encapsulation,A.D.T
 The hiding of design decisions in a
computer program that are most likely
to change , thus protecting other parts
of the program from change if the
decision is changed.
 In object oriented programming,
access to the private part of object is
restricted in the sense that the
functions of the object can only
access the data. Thus, private parts
of the objects are not available outside
the object and cannot be altered by
external changes . This property of
object is called as Information Hiding
or Data Hiding.
Class A
{
private:
int a ,b ;
public:
void get();
void put();
}
 Note : In this, the object of class
cannot initialize the private data
member the public member function
can only initialize and access the
data member.
data abstraction ,encapsulation,A.D.T
data abstraction ,encapsulation,A.D.T
data abstraction ,encapsulation,A.D.T

More Related Content

PPTX
concept of oops
PPTX
Purpose of DBMS and users of DBMS
PPTX
Linked List
PPTX
Data abstraction in DBMS
PPTX
encapsulation
PPTX
Packages in java
PPTX
Basic Concept of Database
PPTX
java interface and packages
concept of oops
Purpose of DBMS and users of DBMS
Linked List
Data abstraction in DBMS
encapsulation
Packages in java
Basic Concept of Database
java interface and packages

What's hot (20)

ODP
ER Model in DBMS
PPTX
Sql fundamentals
PDF
Triggers and active database
PPTX
Database abstraction
PPTX
[OOP - Lec 07] Access Specifiers
PPTX
OOP interview questions & answers.
PPTX
Integrity Constraints
PPTX
Method overloading
PPTX
Overview of 3-tier Client Server Architecture
PPTX
JAVA PROGRAMMING
PPTX
Sql Constraints
PPT
Files in c++ ppt
PPTX
Java abstract class & abstract methods
PPTX
Computer Science-Data Structures :Abstract DataType (ADT)
PPT
Data structures using c
PPTX
linked list in data structure
PPTX
sql function(ppt)
PPTX
Normalization in a Database
PPTX
Object Oriented Programming Using C++
ER Model in DBMS
Sql fundamentals
Triggers and active database
Database abstraction
[OOP - Lec 07] Access Specifiers
OOP interview questions & answers.
Integrity Constraints
Method overloading
Overview of 3-tier Client Server Architecture
JAVA PROGRAMMING
Sql Constraints
Files in c++ ppt
Java abstract class & abstract methods
Computer Science-Data Structures :Abstract DataType (ADT)
Data structures using c
linked list in data structure
sql function(ppt)
Normalization in a Database
Object Oriented Programming Using C++
Ad

Similar to data abstraction ,encapsulation,A.D.T (20)

PPTX
Abstraction file
PPTX
Abstraction file
PPTX
Abstraction file
PPTX
Abstraction file
PPTX
Abstraction file
PPTX
Abstraction file
PPTX
Abstraction file
PPT
ch11-1.ppt
PPT
object oriented programming presentation.ppt
PPTX
DS 2024 Lecturde dcdcdcdcdcdcd3 & 4.pptx
PPT
Introduction to Data Abstraction
PPTX
PDF
oopm 2.pdf
PPTX
DSD Unit 1 Abstract Data Type data structures design notes.pptx
PPT
Object oriented programming using c++
PPT
Abstract data types
PPT
Abstract data types
PPT
Abstract data types
PPT
Abstract data types
PPT
Abstract data types
Abstraction file
Abstraction file
Abstraction file
Abstraction file
Abstraction file
Abstraction file
Abstraction file
ch11-1.ppt
object oriented programming presentation.ppt
DS 2024 Lecturde dcdcdcdcdcdcd3 & 4.pptx
Introduction to Data Abstraction
oopm 2.pdf
DSD Unit 1 Abstract Data Type data structures design notes.pptx
Object oriented programming using c++
Abstract data types
Abstract data types
Abstract data types
Abstract data types
Abstract data types
Ad

Recently uploaded (20)

PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPT
introduction to datamining and warehousing
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
DOCX
573137875-Attendance-Management-System-original
PPTX
additive manufacturing of ss316l using mig welding
PDF
composite construction of structures.pdf
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPTX
Current and future trends in Computer Vision.pptx
PPTX
Safety Seminar civil to be ensured for safe working.
PPTX
Artificial Intelligence
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Embodied AI: Ushering in the Next Era of Intelligent Systems
introduction to datamining and warehousing
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
bas. eng. economics group 4 presentation 1.pptx
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Automation-in-Manufacturing-Chapter-Introduction.pdf
573137875-Attendance-Management-System-original
additive manufacturing of ss316l using mig welding
composite construction of structures.pdf
Foundation to blockchain - A guide to Blockchain Tech
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Current and future trends in Computer Vision.pptx
Safety Seminar civil to be ensured for safe working.
Artificial Intelligence
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk

data abstraction ,encapsulation,A.D.T

  • 2. Presented By- KAPIL SHARMA (15CE024) JATIN GANDHI (15CE021) MADHUR SUDAN (15CE028)
  • 3.  Computer program provide result by manipulating data. It determines that how well the data types match the real-world problem space.  The beginning of data type concept is generally seen in older languages like FORTRON and COBOL.  The data structure of COBOL took the first step away from the FORTRON I model by allowing programmers to specify the accuracy of data values and providing a structured data type for records of information.
  • 4.  Computer hardware cannot differentiate between a bit string representing an integer, character or real number. Higher language provide a set of basic data types , such as integer , real and character string.  Type Checking is provided to ensure that the operations receives proper number of arguments of proper data types.  A type definition defines the structure of a data objects with its possible value bindings  User defined types provide improved readability
  • 8.  The importance of abstraction is derived from its ability to hide irrelevant details.  This allows user to use an object with minimum information.  It is a weapon against complexity.
  • 9.  As in OOP’s each object of a class will have external interfaces through which it can be made use . There is no need to look into its inner details( private members). The internal details of the objects are hidden which makes them abstract. The technique of hiding internal details in an object is called Data Abstraction.  Also an integral and central part of every data abstraction is its operation, which are defined as Process Abstractions.
  • 10.  An abstract data type(ADT), is an encapsulation that indicates only the data representation of one specific data types and subprograms that provide the operations for that type.  An abstract data type is defined as a mathematical model of the data objects that make up a data type as well as the functions that operate on these objects.
  • 12.  Encapsulation The user does not need any technical knowledge of how the implementation works to use the ADT. In this way, the implementation may be complex but will be encapsulated in a simple interface when it is actually used.  Localization of change Code that uses an ADT object will not need to be edited if the implementation of the ADT is changed. Since any changes to the implementation must still comply with the interface, and since
  • 13. code using an ADT object may only refer to properties and abilities specified in the interface, changes may be made to the implementation without requiring any changes in code .  Flexibility This gives a great deal of flexibility when using ADT objects in different situations. For example, different implementations of the ADT may be more efficient in different situations; it is possible to use each in the situation where they are preferable, thus increasing overall efficiency.
  • 14.  The technique of hiding the used data structure and only provide a well- defined interface is known as Encapsulation.  The wrapping up of data and functions into a single unit is known as Encapsulation.  Through encapsulation the data is not accidently corrupted by external world.  The access specifiers defined the accessing of data and member functions.
  • 15. 15 “Don’t ask how I do it, but this is what I can do” - The encapsulated object “I don’t care how, just do your job, and I’ll do mine” - One encapsulated object to another
  • 16. Benefits of Encapsulation Encapsulation is a very important O-O concept Each object has 2 views. An internal view and an external view Encapsulation is a form of protection Also called Information Hiding The outside world does not have direct access to the internal implementation or representation of an object
  • 17. As long as the external view does not change, the internal view can take on any form without affecting the outside world By hiding data and providing methods to gain access to it, an object can maintain high data integrity Methods have the responsibility of maintaining data integrity private visibility offers full encapsulation
  • 18. protected and default offer limited encapsulation public offers no encapsulation
  • 20.  The hiding of design decisions in a computer program that are most likely to change , thus protecting other parts of the program from change if the decision is changed.  In object oriented programming, access to the private part of object is restricted in the sense that the functions of the object can only access the data. Thus, private parts of the objects are not available outside the object and cannot be altered by external changes . This property of object is called as Information Hiding or Data Hiding.
  • 21. Class A { private: int a ,b ; public: void get(); void put(); }  Note : In this, the object of class cannot initialize the private data member the public member function can only initialize and access the data member.

Editor's Notes

  • #16: 3.1 Encapsulation and Abstraction