why we use the dynamic stack as a data type in a reference variable of class QUSDequeueEfficient, instead can we use directly Dynamic stack primary = new DynamicStack(); or not
Queue using stack dequeue efficient
Hey @8006366388,
We usually do this approach to create objects and pass them through parameterized constructors. Yes it is allowed but we follow this only to pass objects through parameterized constructors.