Create vs new()

In reply to 100rabhh:

In order to create a new object the new() will eventually get called. You can either call it directly or use the factory routine create() which in turn will call new();

The advantage of using the factory routine is that, it will be easy to do a factory override. In the above example,if you would like to use a defective driver for the next test, you do not
have to change the test code, instead you do a separate call to set_override_type_by_type(). You will lose this flexibility if you had directly called new() to create the driver.