next up previous contents
Next: Class Relationships Up: Lecture 2: Classes, Objects, Previous: Template Example: Class Instantiation

Commentary

Parametrized class: class name passed as a parameter (along with other parameters) in the template to get the real class. Only real class may be used. NOT Java equivalent, only in C++. The top class gives implicit implementation using parameters Car and 100. Explicit binding using dependency relationship shown in the bottom diagram.



Ananda Amatya
11/3/1999