Question: Suppose someone designed a stack abstract data type in which the function top returned an access path (or pointer) rather than returning a copy of
Suppose someone designed a stack abstract data type in which the function top returned an access path (or pointer) rather than returning a copy of the top element. This is not a true data abstraction. Why? Give an example that illustrates the problem.
Step by Step Solution
3.34 Rating (172 Votes )
There are 3 Steps involved in it
The problem with this is that the user is given access to the ... View full answer
Get step-by-step solutions from verified subject matter experts
