#include #include #include // myClassTemplate1 // testClassTemplate1.cpp using namespace std; template class Emp{ public: VariousType vt ; void getemp(VariousType *str1) { cout <<"\n datatype :" << typeid(str1).name() << " value : " << *str1 << " At an address " << &str1; } }; int main() { // Call Show to displays a string // Class to objects cout << " data polymorphism with class member function \n "; cout << " * operator points to value \n "; cout << " & operator location\\address of data \n "; string str1 = " manager"; Emp mystr1; mystr1.vt = str1; cout << mystr1.vt ; //mystr1.getemp(mystr1.vt); mystr1.getemp(&mystr1.vt); // display double data type Emp myd1; myd1.vt = 6500.45; myd1.getemp(&myd1.vt); Emp ptr1 ; ptr1.vt = 1500; ptr1.getemp(&ptr1.vt); return 0; }