you can instantiat a template in two ways. 1. Implicit instantiation and 2. Explicit Instantion. implicit instatanitioan can be done by the following ways:
template <class T>
class A
{ public: A(){}
A(){}
void x(); void z(); };
void main()
{ A<int> ai; A<float> af; }
External Instantion can be done the following way:
int main()
{ template class A<int>; template class A<float>; }