21 lines
163 B
C++
21 lines
163 B
C++
|
|
#include "test.h"
|
|
|
|
test::test( int val )
|
|
{
|
|
setval( val );
|
|
}
|
|
|
|
|
|
void test::setval( int val )
|
|
{
|
|
this->val = val;
|
|
}
|
|
|
|
|
|
int test::getval()
|
|
{
|
|
return this->val;
|
|
}
|
|
|