home *** CD-ROM | disk | FTP | other *** search
/ Using Visual C++ 4 (Special Edition) / Using_Visual_C_4_Special_Edition_QUE_1996.iso / ch14 / templts.h < prev    next >
C/C++ Source or Header  |  1995-09-18  |  319b  |  19 lines

  1. // templts.h
  2.  
  3. // The RailroadCar class template
  4. template <class T>
  5. class RailroadCar {
  6. public:
  7.     // Constructors and destructor
  8.     RailroadCar(int NewCarNumber, T& NewContents);
  9.     ~RailroadCar();
  10.  
  11.     // Public member functions
  12.     void ShowContents();
  13.     T* Unload();
  14.  
  15. private:
  16.     T* pContents;
  17.     int CarNumber;
  18. };
  19.