improve example
parent
0334b9a42b
commit
31d0496a93
@ -1,5 +1,10 @@
|
|||||||
#include "MyService.h"
|
#include "MyService.h"
|
||||||
|
|
||||||
int MyService::add(int a, int b) {
|
int MyService::add(int a, int b) {
|
||||||
return a + b;
|
counter_ += (a + b);
|
||||||
|
return counter_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int MyService::get() {
|
||||||
|
return counter_;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue