home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / os2tk20 / c / samples / animals / animeta.cs_ / ANIMETA.CSC
Encoding:
Text File  |  1992-07-15  |  487 b   |  24 lines

  1. #   @(#)animeta.csc 1.3 2/3/92 20:39:58 [2/3/92] (c)IBM Corp. 1992
  2.  
  3. -- Copyright (c) International Business Machines Corporation
  4. --         1991, 1992
  5.  
  6. include <somcls.sc>
  7.  
  8. class: AnimalFactory,
  9.   local;
  10.  
  11. -- This is an example of a simple metaclass.
  12. -- This metaclass provides a constructor method for
  13. -- the Animal class.
  14.  
  15. parent: SOMClass;
  16.  
  17. methods:
  18.  
  19. group: Constructors;
  20.  
  21.    SOMAny * newAnimal(char *sound);
  22. -- Create an instance of an Animal with a specific sound.
  23.  
  24.