#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 object1(10, 0.23);
myclass object2('X', "This is a test");
object1.show(); // show int, double
object2.show(); // show char, char *
return 0;
}