home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / sherlock.zip / CPPTEST / VF.H < prev   
Text File  |  1993-04-01  |  902b  |  47 lines

  1.  
  2.  
  3. /****************************/
  4. /* Defining the Base Class  */
  5. /****************************/
  6.  
  7. class _Export area
  8.    {
  9.    private:
  10.       double dim1, dim2;
  11.    public:
  12.       static int   objectCount;
  13.       void setarea(double d1 , double d2);
  14.       void getdim(double &d1, double &d2);
  15.       virtual double getarea();
  16.       area::area(void);
  17.    };
  18.  
  19.  
  20. /*******************************/
  21. /* Defining a   Derived class  */
  22. /*******************************/
  23.  
  24.  
  25. class _Export rectangle : public area
  26.    {
  27.    public:
  28.       static int objectCount ;
  29.       double getarea();
  30.       rectangle::rectangle(void);
  31.    };
  32.  
  33. /*******************************/
  34. /* Defining a   Derived class  */
  35. /*******************************/
  36.  
  37.  
  38. class _Export triangle : public area
  39.    {
  40.    public:
  41.       static int objectCount;
  42.       double getarea();
  43.       triangle::triangle(void);
  44.    };
  45.  
  46.  
  47.