Program
#include “iostream.h”
#include “conio.h”
template
class test
{
T1 a;
T2 b;
public:
test(T1 x,T2 y)
{
a=x;
b=y;
}
void show()
{
cout <<>
}
};
void main()
{
clrscr();
cout << "Template class\n";
test
test
test1.show();
test2.show();
getch();
}
Output
Template class
1.23and123
100andw