home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv7.zip / VACPP / IBMCPP / smarts / DTS / DOG / DOG.HH < prev   
Text File  |  1995-06-02  |  457b  |  22 lines

  1. %PROLOG%
  2.  
  3. #include "animal.hh"
  4.  
  5. /*
  6.  * The "Dog" derived class.
  7.  *
  8.  * As we did with the Cat class, we will supply our own
  9.  * default constructor with a different default name.
  10.  *
  11.  * The SOMClassName pragma could be omitted here, in which
  12.  * case the SOM name of this class would be the mangled name "zdog".
  13.  *
  14.  */
  15. class _Export Dog : public Animal
  16. {
  17.    public:
  18.        Dog(char* name = "Fido");
  19.  
  20.    #pragma SOMClassName(*, "SOMDog")
  21. };
  22.