| Introduction to OOP | Chapter 14: Polymorphism and Software Reuse: | next | previous | audio | real | text |
Suppose we have already a List data type with the following behavior:
Want to build the Set data type (elements are unique).
class List {
public:
void add (int);
int includes (int);
void remove (int);
int firstElement ();
};