
03/05/2014, 03:16
|
 | | | Fecha de Ingreso: octubre-2011 Ubicación: mexico
Mensajes: 760
Antigüedad: 13 años, 4 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 |