Answer to Question #52068 in C++ for Paula manzini
2.1.1. stackADT<int> newStack;
2.1.2. stackType<double> sales(-10);
2.1.3. stackType<string> names;
2.1.4. linkedStackType<int> numStack(50);
will be stored in program stack. In 2.1.1 default constructor will be called,
if it is defined in class; 2.1.3 is similar; in 2.1.4 overloaded constructor is
called in which linked stack capacity is initialized by 50.
2.1.2 has a logical mistake -here is try to set negative capacity.
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!