All pastes #370994 Raw Edit

nathalia

public text v1 · immutable
#370994 ·published 2007-02-25 01:04 UTC
rendered paste body
public 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;
    }