We'll discuss why later. Type it out yourself and give it a whirl. It is extremely important that developers learn how to initialize Java objects. You initialize objects through constructors, which are special methods called when an object is created. Every class in Java can have constructors.
Constructors have no declared return value.
This does not mean that their return value is void. It only indicates that you omit the return value part of the declaration. Consider the instance of the class itself to be the return value. Other than these differences, constructors are similar to normal methods when written. This is a constructor for AlarmClock.