More Related Content
More from jyoti_lakhani (20)
Ds04 abstract data types (adt) jyoti lakhani
- 1. 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
- 2. ©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