Overrides of methods in a worker base class instead of override of MHL cases in childs

Hi,

I´ve checked the examples under https://docs.workersforlabview.io/getting-started/example-projects, especially the Workers DMM HAL Project.

The abstraction is done by using a worker base class "DMM HAL" and the concrete devices
are overriding the MHL cases of the base classhttps://files-us-east-1.t-cdn.net/files/FqgMCKXXTT8mFym4dtMJj .

Original Implementation:

My question is , why not creating a method like "xReadMeasurement" in the base class and then just override this method without the override of the MHL case?
Is there any disadvantage? Is this against the framework somehow?

My suggestion:

In my opinion unit testing would be easier but I´m afraid of running in some problems I do not see at the moment for the reason just starting with the framework.

So I would be happy for some feedback 😃

1
2 replies