summaryrefslogtreecommitdiffstats
path: root/Bachelor/Prog2/Prakt2/geomObj/Rectangle.cpp
blob: cc48ae294d30cf42f63a6dd72961fcb4452cf8b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "Rectangle.h"

Rectangle::Rectangle()
	:sideA(.0),sideB(.0)
{
}

Rectangle::~Rectangle()
{
}

Rectangle::Rectangle(double newA, double newB)
	:sideA(newA),sideB(newB)
{
}

double Rectangle::getCircumference()
{
	return 2 * (sideA + sideB);
}

double Rectangle::getArea()
{
	return sideA*sideB;
}