#include
using namespace std;
template class MyClass
{
Type1 i;
Type2 j;
public:
MyClass(Type1 a, Type2 b) {
i = a;
j = b;
}
void show() {
cout << i << ' ' << j << '\n';
}
};
int main()
{
MyClass ob1(10, 0.23);
MyClass ob2('X', "AAAAAAA");
ob1.show();
ob2.show();
return 0;
}
10 0.23
X AAAAAAA