summaryrefslogtreecommitdiffstats
path: root/Bachelor/Prog2/Prakt2/geomObj/Square.cpp
blob: 3bd66827de0ccdfe0ab396e142720387949b6f32 (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 "Square.h"

Square::Square()
	:length(.0)
{
}

Square::Square(double newlength)
:length(newlength)
{
}

Square::~Square()
{
}

double Square::getArea()
{
	return length*length;
}

double Square::getCircumference()
{
	return 2 * (length + length);
}