In reply to dave_59:
Also you can see a small article on how to access the DUT memory from anywhere in TB.
As @dave_59 suggested me, that we can also use the Interface class(better way actually) instead of abstract class. But this article give you a idea how things work.