template <class T> class className { private: T var; ... .. ... public: T functionName(T arg); ... .. ... };