Question: 4. (6 points) Consider the implementation of the Stack constructor from the specification in question #2. Stack::Stack(int theSize) { this->num = 0; size = theSize;
4. (6 points) Consider the implementation of the Stack constructor from the specification in question #2. Stack::Stack(int theSize) { this->num = 0; size = theSize; storage = new int[theSize]; } a. What does this denote in the first assignment statement?
b. Why do we not need to use the identifier this in the next two assignment statements?
c. In general, within a class member function, what is the meaning of *this?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
