Adding a construction necessitates use of a default, no-argument constructor, supplied by Java for every class. If an overloaded constructor is written, the default, no-argument constructor must be hard-coded into the method.

9                                  public Person(){
10                                         fullName = "John Doe";
11                                         age = 0;
12                                         gender = '?';
13                     }

In the code above, a constructor is created that sets the value of name, age, and gender for a person.