ADT : Abstract Data Type
©Jyoti Lakhani
OBJECT
Pen
A definition for data type
A set of values(properties) and operations
Type
Brand
Color
Write()
Price
A collection of related data items together with an associated set of operations
©Jyoti Lakhani
Write()
INPUT OUTPUT
class Pen
{
public:
int Type
String Brand
int Color
int Price
void Write()
}
ENCAPSULATION
Data Type : Independent of Implementation
Emphasis -> WHAT
Abstract -> HOW
Data Structure : Physical Implementation of an ADT
©Jyoti Lakhani
Data Type

Ds04 abstract data types (adt) jyoti lakhani

  • 1.
    ADT : AbstractData Type ©Jyoti Lakhani OBJECT Pen A definition for data type A set of values(properties) and operations Type Brand Color Write() Price A collection of related data items together with an associated set of operations
  • 2.
    ©Jyoti Lakhani Write() INPUT OUTPUT classPen { public: int Type String Brand int Color int Price void Write() } ENCAPSULATION Data Type : Independent of Implementation Emphasis -> WHAT Abstract -> HOW Data Structure : Physical Implementation of an ADT
  • 3.