![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Introduction to Object-oriented Programming - slide 10 : 22 |
A datatype is a set of values with common properties. A datatype is a classification of data that reflects the intended use of the data in a program.
An abstract datatype is a data type together with a set of operations on the values of the type. The operations hide and protect the actual representation of the data.
![]() | A specification of the abstract datatype stack. |
![]() | A specification of the abstract datatype natural numbers. |
![]() | A specification of the abstract datatype boolean. |