2d: Object-oriented Programming And Abstract Data Types
Academic Year 2021-2022
An Abstract Data Type (ADT) is a mathematical model for data
types. ADTs enable defining the behavior of a data type from the
perspective of users of data — range of values, valid operations
on the data, and behavior of these operations. A generic data type
is an ADT, class, or interface parameterized over types. ADTs
helps to decouple the use of an ADT from its underlying
implementation.
Object-oriented programming (OOP) is a natural extension of
ADTs. OOP adds to ADTs the following features: class, inheritance,
class hierarchy, polymorphism, composition, and interfaces.
Assessment is performed as follows.
|