In reply to UVM_LOVE:
You have two new() functions (constructors) in your environment class. This is why you have an error. You should have only one new() function and pass both interface handles as arguments.
In reply to UVM_LOVE:
You have two new() functions (constructors) in your environment class. This is why you have an error. You should have only one new() function and pass both interface handles as arguments.