Callbacks Vs Virtual functions

Hi,

I was trying to understand what UVM callbacks implement. When I tried to understand the difference between a callback and what virtual functions helps us to, I feel they both are same ( Not sure ).

Incase they are really giving us same functionality, Why do we have a callback mechanism ?

Thanks,
Venkatesh

In reply to vbabusr:

I am not sure where you read virtual function and callback are do same work.

Virtual function are related to polymorphism concept.
However, callbacks provides hook to access some of method when it required.

To, know about callback you can refer below link

In reply to vbabusr:

You may also want to read: What is the advantage of using call-backs when inheritance+overide can help achieve the same?Is it recommended to use callbacks? | Verification Academy