#include <iostream>
template<class T>
class Example {
public:
T a, b;
Example(T x, T y) : a(x), b(y) {} // constructor
void show();
};
template<class T>
void Example<T>::show() {
std::cout << a << " " << b;
}
int main() {
int x = 10;
int y = 25;
Example<int> obj(x, y);
obj.show();
}
/*
run:
10 25
*/