/*********************************************************** Copyright 2003 Rick Miller - Pulp Free Press This source code accompanies the text C++ For Artists and is provided for instructional purposes only. No warranty concerning the quality of the code is expressed or implied. You are free to use this code in your programs so long as this copyright notice is included in its entirety. **********************************************************/ #ifndef FOOTEMPLATEDEF_H #define FOOTEMPLATEDEF_H template class Foo{ public: Foo(T _val); virtual ~Foo(); void setVal(T _val); T getVal(); private: T val; }; template Foo::Foo(T _val):val(_val){} template Foo::~Foo(){} template void Foo::setVal(T _val){ val = _val; } template T Foo::getVal(){ return val; } #endif