Use that to assign default values to the class's fields instead of their default values of null and 0.
Type: Posts; User: Norm
Use that to assign default values to the class's fields instead of their default values of null and 0.
Take a look at the tutorial about writing constructors:
Providing Constructors for Your Classes (The Java™ Tutorials > Learning the Java Language > Classes and Objects)