In reply to shamanth:
If you are looking to the source code you see the constructor ha 2 arguments:
function new (string name, uvm_component parent);
Because of this you cannot neglect the 2nd argument. But you could try ‘null’.
Again it is not a good idea to implement an analysis port in an uvm_object.
Could you please explain what kind of object you are using?