Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(this is my .h file and parts of my class) (This is my .cpp file and I dont know how to call it it won't
(this is my .h file and parts of my class)
(This is my .cpp file and I dont know how to call it it won't access any of my private members)
StringSet unions(const StringSet &) const - returns a StringSet object that contains the union of the calling object and the parameter (if the result is the empty set the returned String Set object's current size should equal zero); in case you were wondering, this method is called unions because union is a reserved word class{ public: //returning the union of the calling object and a //stringset StringSet unions (const StringSet & st) const; private: //pointer to a string that will point to an array string* strr; //An int that records the current size of the ari int arrSize; //An int that records the maximum size of the ari int maxArr; //returning the union of the calling object and another StringSet: :unions (const StringSet & set1) { StringSet unionSet = set1; for(int i=0; i
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started