The stub of
isFull()
should look like this:
bool Stack::isFull() const { }
The
isFull()
method should return
true
when
mySize
equals
myCapacity
, and return
false
otherwise. How can you write this in a single line?