| Introduction to OOP | Chapter 27: Implementation : | next | previous | audio | real | text |
Instead of
void CardPile::addCard (Card * aCard) {
...
}
We have
void addCard (CardPile * this, Card * aCard) {
...
}
The first argument can then be used to access data members and other
methods.