VitalPotion VitalPotion - 1 year ago 77
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?

Answer Source

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>.