class GoodMemory
1: // Created by Frank M. Carrano and Timothy M. Henry.
2: // Copyright (c) 2017 Pearson Education, Hoboken, New Jersey.
4: /** @file GoodMemory.h
5: Listing C2-2 */
6: #ifndef GOOD_MEMORY_
7: #define GOOD_MEMORY_
8: #include "ToyBox.h"
10: class GoodMemory
11: {
12: private:
13: ToyBox<string>* someBoxPtr;
14: public:
15: GoodMemory(); // Default constructor
16: virtual ~GoodMemory(); // Destructor
17: void unleakyMethod(const double& someItem);
18: }; // end GoodMemory
19: #endif