home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / os2tk20 / c / samples / tp / bt.cs_ / BT.CSC
Encoding:
Text File  |  1992-07-15  |  1.0 KB  |  42 lines

  1. #   @(#)bt.csc 1.3 1/22/92 16:08:08 [1/26/92] (c)IBM Corp. 1992
  2.  
  3. -- This class is adapted from the book
  4. --   Class Construction in C and C++, Object Oriented Fundamentals
  5. --   by Roger Sessions, Copyright (c) 1992 Prentice Hall.
  6. -- Reprinted with permission.
  7.  
  8. include <somobj.sc>
  9.  
  10. class: baseType,
  11.   local;
  12.  
  13. parent: SOMObject;
  14.  
  15. /*
  16. ----------------------------------------------------
  17.   Class: baseType
  18.  
  19. Purpose: This class defines the general functionality
  20.      that must be supported by any class, objects of which
  21.      are going to be placed on the linkedList class.
  22.      This class should not be instantiated directly.
  23.      It should be used only for further class derivations.
  24. ---------------------------------------------------- */
  25.  
  26.  
  27. passthru: C.h;
  28. #include <stdio.h>
  29. endpassthru;
  30.  
  31. methods:
  32.  
  33. group: Group1;
  34.  
  35.   int match(void *target);
  36.   --  Returns TRUE if the target object matches target,
  37.   --  FALSE otherwise.
  38.  
  39.   void print(FILE *outputFile);
  40.   --   Prints the target object in some reasonable format.
  41.  
  42.