Java examples for Object Oriented Design:Constructor
Calling Another Constructor with this keyword
class Circle { // w w w . jav a 2 s. c o m int x, y, radius; Circle (int xPoint, int yPoint, int radiusLength) { this.x = xPoint; this.y = yPoint; this.radius = radiusLength; } Circle (int xPoint, int yPoint) { this(xPoint, yPoint, 1); } }