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:
parent
75c0e7cb76
commit
997217087b
|
@ -0,0 +1,6 @@
|
|||
#include "calculator.h"
|
||||
|
||||
int Calculator::Add (int a, int b)
|
||||
{
|
||||
return a + b;
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
class Calculator
|
||||
{
|
||||
public:
|
||||
int Add (int, int);
|
||||
};
|
Loading…
Reference in New Issue