nathalia
public text v1 · immutablepublic int darTotalFlores( )
{
int total = 0;
if (flor1!= null)
{
total += flor1.darCantidad();
}
if (flor2!= null )
{
total += flor2.darCantidad();
}
if (flor3!= null)
{
total += flor3.darCantidad();
}
if (flor4!= null)
{
total += flor4.darCantidad();
}
// TODO
// Completar según la documentación
return total;
}