home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c081_11 / 11.ddi / CLASSSRC.ZIP / BAG.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-13  |  1.8 KB  |  74 lines

  1. // Borland C++ - (C) Copyright 1991 by Borland International
  2.  
  3. // Contents ----------------------------------------------------------------
  4. //
  5. //
  6. // Description
  7. //
  8. //      Implementation of member functions for class Bag.
  9. //
  10. // End ---------------------------------------------------------------------
  11.  
  12. // Interface Dependencies ---------------------------------------------------
  13.  
  14. #ifndef __CLSTYPES_H
  15. #include <clstypes.h>
  16. #endif
  17.  
  18. #ifndef __BAG_H
  19. #include <bag.h>
  20. #endif
  21.  
  22. // End Interface Dependencies ------------------------------------------------
  23.  
  24. // Implementation Dependencies ----------------------------------------------
  25. // End Implementation Dependencies -------------------------------------------
  26.  
  27.  
  28. // Member Function //
  29.  
  30. Bag::~Bag()
  31.  
  32. // Summary -----------------------------------------------------------------
  33. //
  34. //      Destructor for a Bag object.
  35. //
  36. //        We don't do anything here, because the destructor for Container
  37. //        will take care of destroying the contained objects.
  38. //
  39. // End ---------------------------------------------------------------------
  40. {
  41. }
  42. // End Destructor //
  43.  
  44.  
  45. // Member Function //
  46.  
  47. classType Bag::isA() const
  48.  
  49. // Summary -----------------------------------------------------------------
  50. //
  51. //      Returns the class type of a bag.
  52. //
  53. // End ---------------------------------------------------------------------
  54. {
  55.     return bagClass;
  56. }
  57. // End Member Function Bag::isA //
  58.  
  59.  
  60. // Member Function //
  61.  
  62. char *Bag::nameOf() const
  63.  
  64. // Summary -----------------------------------------------------------------
  65. //
  66. //      Returns a pointer to the character string "Bag".
  67. //
  68. // End ---------------------------------------------------------------------
  69. {
  70.     return "Bag";
  71. }
  72. // End Member Function Bag::nameOf //
  73.  
  74.