#include
using namespace std;
class Test
{
private:
int a;
int b;
public:
Test(int a, int b)
{
this->a = a;
this->b = b;
}
int add();
};
int Test::add()
{
return a+b;
}
int main()
{
Test t1(2,3);
cout << t1.add() << endl;
Test *t2 = new Test(8,9);
cout << t2->add() << endl;
delete t2;
return 0;
}