1
JavaIntermediate#oop
A constructor initializes a new object and has the same name as the class with no return type. Constructor overloading provides multiple constructors with different parameter lists so objects can be created in different ways.
class Point {
int x, y;
Point() { this(0, 0); }
Point(int x, int y) { this.x = x; this.y = y; }
}