Similar to functions, classes can also be parameterized with one or more types.
Container classes, which are used to manage elements of a certain type, are a
typical example of this feature. By using class templates, you can implement
such container classes while the element type is still open. In the coming post we
use a stack as an example of a class template.
No comments:
Post a Comment