Extending Zymonic with polymorphism (subclassing): Difference between revisions

From Zymonic
Content added Content deleted
(Created page with "=Extending Zymonic with polymorphism (sub-classing)= In general sub-classing is done by copying the existing class e.g. Zymonic/Field.pm into the appropriate sub-directory (F...")
 
Line 5: Line 5:
However, there are some cases that warrant further discussion:
However, there are some cases that warrant further discussion:


[[FieldFillCalculation]]
[[Sub-classing FieldFillCalculation]]

Revision as of 10:24, 10 September 2019

Extending Zymonic with polymorphism (sub-classing)

In general sub-classing is done by copying the existing class e.g. Zymonic/Field.pm into the appropriate sub-directory (Field) with a new name e.g. Zymonic/Field/MySubClass.pm, changing the package name, the content of the POD and removing all the methods from the original file apart from any you intend to modify.

However, there are some cases that warrant further discussion:

Sub-classing FieldFillCalculation