when constructor works in java code example Example: java constructor class Huso { public Huso() { //constructor code about a huso } }