#include <iostream> using namespace std; template <typename T> class Container { T element; public: Container(T arg) : element(arg) {} T getElement() { return element; } }; int main() { Container<int> intContainer(42); Container<string> stringContainer("Hello, World!"); cout << "Integer container holds: " << intContainer.getElement() << endl; cout << "String container holds: " << stringContainer.getElement() << endl; return 0; }