Introduction to OOP Chapter 14: Polymorphism and Software Reuse: next previous audio real text

Example - Building Sets from Lists

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 ();
};
Intro OOP, Chapter 14, Slide 05