Hello,

I'm new to C++ and I need to achieve a way where I need to pass variables via template like below:
Code:
Category<box, shelf>(params)
There are subclasses of Category. where I have three types of Box and 4 types of Shelf and each class contains the different logic, mean total 12 subclasses, I need to select class based on box and shelf input value

How can I achieve this?