1: // Created by Frank M. Carrano and Tim Henry.
2: // Copyright (c) 2013 __Pearson Education__. All rights reserved.
4: /** Listing C1-9.
5: @file BoxInterface.h */
6:
7: #ifndef _BOX_INTERFACE
8: #define _BOX_INTERFACE
10: template <class ItemType>
11: class BoxInterface
12: {
13: public:
14: virtual void setItem(const ItemType& theItem) = 0;
15: virtual ItemType getItem() const = 0;
16: }; // end BoxInterface
17: #endif