Thales interview question

Write a template class and used in 2 subclasses