Question: Main function is given. Kindly make appropriate class member functions so that the program run successfully. (a) (15 Marks) Your goal is to write a

Main function is given. Kindly make appropriate class member functions so that the program run successfully.
(a) (15 Marks) Your goal is to write a class Set that will be used to build set of integers (you can make it generic if you want). Remember that a set only contains unique items. Now given following code segments, first identify all the basic functions and operators you need, and then write these functions. int a[] = { 1, 3, 3, 2, 5 }; Set s1(a, 5); // set initalized using an array with 5 elements s1 + 4; // add a new item to the set sl - 3; // remove 3 from the set. 1 2 3 4 5 7 Set s2 (a, 5); // set initalized using an array with 5 elements if (s2 s1) cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
