basic implementation

Introduce the `Calculator` class with single member-function which
performs an addition.

Signed-off-by: Sergii Piatakov <sergii.piatakov@globallogic.com>
This commit is contained in:
Sergii Piatakov 2018-11-15 15:07:05 +02:00
parent 75c0e7cb76
commit 997217087b
2 changed files with 11 additions and 0 deletions

6
calculator.cpp Normal file
View File

@ -0,0 +1,6 @@
#include "calculator.h"
int Calculator::Add (int a, int b)
{
return a + b;
}

5
calculator.h Normal file
View File

@ -0,0 +1,5 @@
class Calculator
{
public:
int Add (int, int);
};