ANIMATE 2025 is here! 2D/3D animation hackathon using Synfig Studio and Blender. For more details, Click here!

Non static block - Manipuri

537 visits



Outline:

Non-static block Any code written between two curly brackets Executed for each object that is created Executes before constructor's execution can initialize instance member variables of the class create a class named NonStaticTest Create a non-static block and a constructor inside it Check the output Include multiple non-static blocks they will be executed in the sequence in which they appear in the class Check the output Non-static block is not a substitute for constructor