T03 Create a Constructor ======================== .. include:: /external-links.txt .. rubric:: In this tutorial we will create a simple constructor in a class with MetaFactory. - Open in directory metafactory-workshop-metafactory\\src\\patterns\\package\\feature1 the file called pattern1.xml and add the highlighted content to it: .. literalinclude:: /_static/tutorial-files/3-create-a-constructor/pattern1.xml :caption: src/patterns/package/feature1/pattern1.xml :language: xml :linenos: :emphasize-lines: 7-9 Now: - Click on metafactory-workshop-metafactory in the MetaFactory Project window. - Click on the Play button to run the MetaFactory tool. Once finished the MetaFactory Tool will have generated the Java class MyClass with the constructor in it. - Open metafactory-workshop-backend\\src\\main\\java\\com\\company\\workshop\\MyClass.java to see the result.