Skip to content

Commit

Permalink
//Se cambia el parametro SMILE_UP, por SMILE_DW
Browse files Browse the repository at this point in the history
         
//¿Qué pasa si le asigno un numero en lugar de SmileConstants.SMILE_UP?

//La voca de la cara desaparece

//¿Porqué no genera error?
//Porque el objeto recibe 5 parametros
  • Loading branch information
general committed Oct 26, 2017
1 parent 26395f7 commit e0b32e9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Patrones2/src/tools/sad/SadPaintableFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ public Paintable create(int x1, int y1, int x2, int y2) {
if (useImage) {
return new SadImageFace(x1, y1, x2, y2);
} else {
return new DrawnFace(x1, y1, x2, y2,SmileConstants.SMILE_UP);
return new DrawnFace(x1, y1, x2, y2,SmileConstants.SMILE_DW);
//Se cambia el parametro SMILE_UP, por SMILE_DW

//¿Qué pasa si le asigno un numero en lugar de SmileConstants.SMILE_UP?

//La voca de la cara desaparece

//¿Porqué no genera error?
//Porque el objeto recibe 5 parametros
}
}
}

0 comments on commit e0b32e9

Please sign in to comment.