Source of BoxInterface.h


  1: //  Created by Frank M. Carrano and Tim Henry.
  2: //  Copyright (c) 2013 __Pearson Education__. All rights reserved.

  4: /** Listing C4-3.
  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 ~BoxInterface() { } // Empty implementation   
 15:    virtual void setItem(const ItemType& theItem) = 0;
 16:    virtual ItemType getItem() const = 0;
 17: }; // end BoxInterface
 18: #endif