I have created an array type pkt object of packet class to store a packet object pobj,and once passed to add method it is changed to dataInterest type and stored in the dlist[].....

In my code...