...

Shape.h

Committer:
kaushalpkk
Date:
2019-08-08
Revision:
0:0bd684b9e2c3
Child:
1:2bc647d6c00d

File content as of revision 0:0bd684b9e2c3:

#ifndef MY_SHAPE
#define MY_SHAPE

#include "mbed.h"

class Shape{
    public:
        Shape(int);
        Shape(int, int);
        int getArea();
        int getPerimeter();
    private:
        int _x;
        int _y;
        int _area;
        int _perim;
};

#endif