-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
33 lines (27 loc) · 797 Bytes
/
main.cpp
File metadata and controls
33 lines (27 loc) · 797 Bytes
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
26
27
28
29
30
31
32
33
/*============================================================================
* Name : Non Virtual Interface Pattern
* Author : I Komang Suhendra Eka Putra
* Version :
* Copyright :
* Description : Implementation of Non Virtual Interface Pattern in C++.
* This project created for C++ Bootcamp Training in Mitrais.
==============================================================================*/
#include <iostream>
#include "inc/Square.h"
#include "inc/Rectangle.h"
#include "inc/Triangle.h"
using namespace std;
using namespace Mitrais;
int main(int argc, char* argv[])
{
// Square
Square square(8.0);
square.printArea();
// Rectangle
Rectangle rectangle(5, 9);
rectangle.printArea();
// Triangle
Triangle triangle(7.0, 9.4);
triangle.printArea();
return 0;
}