Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/05/2014, 03:16
Avatar de jor_0203
jor_0203
 
Fecha de Ingreso: octubre-2011
Ubicación: mexico
Mensajes: 760
Antigüedad: 12 años, 6 meses
Puntos: 8
como se usa esto this(0, 0), en java

como se usa esto this(0, 0), yo sabia que cuando usamos la
variable this.y hay un punto y si se fijan adelante de this(0,0) no hay un punto y es que esto lo uso el maestro



public Rectangle(int width, int height) { this(0, 0);}//fíjate que ocupo this y no hay un punto
public Rectangle(int x, int y, int width, int height)
{ this.x = x; this.y = y; } //fíjate que ocupo un punto antes de x