VitalPotion VitalPotion - 8 months ago 54
C++ Question

Please explain about class instance in c++

class AAA
BBB<CCC> item;

Both BBB and CCC are other classes name of their header files. What
does "BBB< CCC > item;" means?


BBBis a class that takes a template parameter. The template parameter is class CCC. That means item is a private variable of type BBB<CCC>.