public class Gota { private double tamanno = 0.0; public Gota(double tamannoInicial) { this.tamanno = tamannoInicial; } public Gota unir(Gota otra) { Gota resultante = new Gota(this.tamanno + otra.tamanno); this.tamanno = otra.tamanno = 0; return resultante; } }