An Example of Calling Insert
void Bag::insert(int new_entry)
b.data
b.count
We make a function call
b.insert(17)
What values will be in
b.data and b.count
after the member
function finishes ?
2
[ 0 ]
[ 1 ]
[2]
. . .
8
4
void Bag::insert(int new_entry)
Previous slide
Next slide
Back to first slide
View graphic version