blob: 69db85bf31bac780bdc91401444acab0244a96fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/*
* Do not adapt this file!!!
*/
#include "Driehoek.h"
#include "Rechthoek.h"
#include <iostream>
int main()
{
Vorm *driehoek = new Driehoek( 6.0, 8.0 );
Vorm *rechthoek = new Rechthoek( 6.0, 8.0 );
std::cout << driehoek ->getOppervlakte() << " " << driehoek ->getSomGraden() << std::endl;
std::cout << rechthoek->getOppervlakte() << " " << rechthoek->getSomGraden() << std::endl;
delete driehoek;
delete rechthoek;
return 0;
}
|