Chapter 6
Object-Oriented Programming
Section 1
Lesson Overview
So far, we have learned about templates that are used to create functions and classes that work with arbitrary types. This avoids duplication of work. However, using templates is not applicable in all cases, or may not be the best approach. The limitation of templates is that their types need to be known when the code is compiled. Let us now learn how to use the advanced features of C++ to create dynamic programs.