Question: Consider the following two bag classes and mark the correct answer: class bagl { ... private: value_type data [CAPACITY]; size_type used; class bag2 {
Consider the following two bag classes and mark the correct answer: class bagl { ... private: value_type data [CAPACITY]; size_type used; class bag2 { }; ... private: value_type *data; size_type used; The automatic assignment operator works for bag2 but fails for bag1 The automatic assignment operator works for bag1 but fails for bag2 The automatic assignment operator works for bag1 and bag2 The automatic assignment operator fails for bag1 and bag2
Step by Step Solution
3.49 Rating (146 Votes )
There are 3 Steps involved in it
The image provided shows two class definitions presumably for a data structure called bag that store... View full answer
Get step-by-step solutions from verified subject matter experts
