Computer Science II - Juniata College

The job of a constructor is to initialize an object of the class. Unlike C where you have to specifically allocate space for the object with a malloc call, (or something similar), java takes care of finding the appropriate memory automatically. All you have to do is initialize the components of the object. ................
................