Lecture overview -- Keyboard shortcut: 'u'  Previous page: Templates versus generics in Java, C# and C++ -- Keyboard shortcut: 'p'  Next page: Class templates in C++ -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Alphabetic index  Help page about these notes  Course home    Templates and The Standard Library - slide 4 : 46

Example - Point<C>
We make a type parameterized Point - class Point<C>
point.h
A type parameterized variant of class Point - point.h.
point.cc
The implementation of the template class Point - point.cc.
prog.cc
A program that illustrate template instantiation.
Go to exercise
A template class with friends