Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # include "header.h"
- # include "ThreeD_Shape.h"
- class Sphere: public ThreeD_Shape
- {
- int x2,y2,z2;
- public:
- Sphere(int x1,int y1, int z1, int x2,int y2,int z2): ThreeD_Shape(x1,y1,z1)
- {
- this->x2=x2;
- this->y2=y2;
- this->z2=z2;
- };
- double S();
- double V();
- void print();
- };
- # ifndef THEED_SHAPE
- # define THREED_SHAPE
- # include "header.h"
- class ThreeD_Shape: public Shape
- {
- protected:
- int x1,y1,z1;
- public:
- ThreeD_Shape(int x1,int y1,int z1)
- {
- this->x1=x1;
- this->y1=y1;
- this->z1=z1;
- }
- virtual void print()=0;
- virtual double S()=0;
- virtual double V()=0;
- };
- # endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement