Like the functionality i want to achieve is as under: but it will not work. How can i achieve the same functionality?
Code:
# include <iostream.h>
# include <conio.h>

template <class T>
class Test
{
	T a;
	public:
		void set()
		{
			cin>>a;
		}
		void display()
		{
			cout<<"A is"<<a<<endl;
...