This programme I actually want to search
Design and implement the following class “Set” functionality to perform the following piece of code: (It must be noted that memory allocated by Array should be created at run time according to size and de-allocated by destructors). Total Marks: 100 class Set { private: const int size; int *Array; Set(int sz); ~Set(); void setData(void); void showData(void); Set union(Set Y); Set intersection(Set Y); int main() { // Number of values in the set // It holds the set values specified by size // constructor // destructor // to enter data in the Set according to its size // to display set values according to its size // union of two sets // intersection of two sets public: }; } Set A(5), B(7), C, D; A.setData(); B.setData(); C = A.union(B); D = A.intersection(B); C.showData(); D.showData(); return 0; }