Source of ListingC5-3.h


  1: //  Created by Frank M. Carrano and Timothy M. Henry.
  2: //  Copyright (c) 2017 Pearson Education, Hoboken, New Jersey.

  4: // Listing C5-3

  6: template <class ItemType>
  7: class BoxInterface
  8: {
  9: public:
 10:    virtual void setItem(const ItemType& theItem) = 0;
 11:    virtual ItemType getItem() const = 0;
 12:    virtual ~BoxInterface() { } // Empty implementation
 13: }; // end BoxInterface