Not be able to access type override object properties?

In reply to n.s.suhas:

The test_factory class knows that it has overridden the driver in the agent, but the agent is unaware of the override. The point of OOP is that we can use inheritance in a way that makes code re-usable. If the only thing we override in a class is virtual methods and constraints, their’s no need to access the object with the extended class variable.