A.9. ConstructorsConstructors are used to initialize the fields in a newly created object. The syntax for a constructor is visibility ClassName(parameterList) { // statements in the constructor } Constructors are usually defined with public visibility. Notice that they do not have a return type. The name on a constructor must match the class name. |