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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!