Introduction to OOP | Chapter 5: Messages Instances and Initialization: | next | previous | audio | real | text |
PlayingCard * aCard = new PlayingCard(Spade, 1); delete aCard; cout << aCard.rank();
PlayingCard * aCard = new PlayingCard(Spade, 1); delete aCard; delete aCard; // delete already deleted value