#ifndef NEW3_H #define NEW3_H #include #include #include /* this class is one of the extracted class by our method Author: Mehmet KAYA */ using namespace std; class New3 { private: int x1, y1, x2, y2; public: New3(int left,int up, int right,int bottom) { x1=left; y1=up; x2=right; y2=bottom; } int fun3_1() { return (y2-y1); } int fun3_2() { return (x2-x1); } int fun3_3() { int w=x2-x1; int h=y2-y1; int a=w*h; return a; } int fun3_4() { int w=x2-x1; int h=y2-y1; return 2*w+2*h; } }; #endif