Lecture overview -- Keyboard shortcut: 'u'  Previous page: Data-centered modularity -- Keyboard shortcut: 'p'  Next page: Reusability -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 10 : 22
Object-oriented Programming in C#
Introduction to Object-oriented Programming
Abstract Datatypes

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.

We first define a datatype, and after this an abstract datatype.

The definitions given here are, to some degree, inspired by the free on-line dictionary of computing, FOLDOC at http://foldoc.org. Take a look at it!

/user/normark/oop-csharp-1/sources/other-sources/adt/stack.gasA specification of the abstract datatype stack.

This an the other 'Programs' are examples of specifications of abstract datatypes. A specification tells what an abstract datatype is, NOT how it is implemented.

You may skip these specifications, if you are not motivated right now...


/user/normark/oop-csharp-1/sources/other-sources/adt/knnatnum-extended.gasA specification of the abstract datatype natural numbers.


/user/normark/oop-csharp-1/sources/other-sources/adt/kn-boolean.gasA specification of the abstract datatype boolean.


The sample specifications of abstract datatypes illustrate a high-level and a somewhat theoretical approach