VitalPotion VitalPotion - 1 month ago 7
C++ Question

Please explain about class instance in c++

class AAA
{
private:
BBB<CCC> item;
....}



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

Answer

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