The terminology used for these concepts differs slightly between C++ and Java. In this section, we will use the UML terms template class and template operation to represent the generic elements in both C++ and Java.
In general, the procedures described in this section apply to both C++ and Java. Where there are language-dependent differences, these differences are noted.