Implementation linked list

it is not printing anything

Hey @divyam_13, the issue you are getting is it that you have made 2 different classes one is node another is queue and you haven’t inherited any of them or haven’t declared any as base or parent class. Moreover that’s not how we implement queue by declaring another class. What you should do is make your front rear act as node->next and node->prev.
Try to code using this approach. I will support you with any way to code this implementation.

Moreover this post is an auxiliary copy of your other doubt, so I won’t be rated for that. I am resolving this just to help you & in return just give some hearts so that I can acknowledge that you liked my explanation or not :grinning: