Two child classes with same base class override each other

I wonder if it is possible to override another class through set_type_override_by_type which has same base class.
For example.

Class A extends uvm_object

endclass
Class B extends uvm_object

endclass

it’s possible to do like set_type_override_by_type (A::get_type(), B::get_type()); in test.svh?
Or there is some tricks to achieve this kind of actions.

Thanks!

In reply to jeremy_prettyderby:

I don’t think so it’s possible because Class A and B are two different classes and we can override class which is extended from base class…

if we have any specific requirement then we can think about the solution

In reply to Desam:

Another way of saying this is: you can only set an override of a class with an extension of it. Since B is not an extension of A, you cannot set it as an override.