NUIMCrest CS210 - Algorithms and Data Structures I
Department of Computer Science
National University of Ireland, Maynooth

T Naughton, NUIM
Back to CS210 home


Laboratory Sheet 7

The abstract data type (ADT) (cont.) In this lab you will continue to design and write code for abstract data types. Answer Problem 7.1.


Abstract data types

Take time to understand the solutions to Lab Sheet 6 that were given to you in the last lecture.

Next, we return to the set class introduced in Lab 5. The following code (MyLittleArraySetVer1) is the shell of a class that defines a set abstract data type.

Problem 7.1 Complete the ADT by writing code for the limited number of methods described in the class' comment. Test your ADT by writing a suitable test program.


End of sheet