home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
sherlock.zip
/
CPPTEST
/
VF.H
< prev
Wrap
Text File
|
1993-04-01
|
902b
|
47 lines
/****************************/
/* Defining the Base Class */
/****************************/
class _Export area
{
private:
double dim1, dim2;
public:
static int objectCount;
void setarea(double d1 , double d2);
void getdim(double &d1, double &d2);
virtual double getarea();
area::area(void);
};
/*******************************/
/* Defining a Derived class */
/*******************************/
class _Export rectangle : public area
{
public:
static int objectCount ;
double getarea();
rectangle::rectangle(void);
};
/*******************************/
/* Defining a Derived class */
/*******************************/
class _Export triangle : public area
{
public:
static int objectCount;
double getarea();
triangle::triangle(void);
};