You don’t have to define a constructor for a class, but if you don’t define any constructor, the Java compiler will insert a default, no-argument constructor for you .
You don’t have to define a constructor for a class, but if you don’t define any constructor, the Java compiler will insert a default, no-argument constructor for you .