Passing a value (from int variable) as parameter inside parameterized class while creating it

In reply to Shailesh Gajjar :

The parameter overrides of a parameterized class must be defined as other parameters or constant literals; they can not be variables.

We need to see what you plan to do with NUM_PORTS to suggest an alternative.