10.05.2014 Views

programación i - Universidad ORT Uruguay

programación i - Universidad ORT Uruguay

programación i - Universidad ORT Uruguay

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

136 Programación I<br />

}<br />

this.getListaCds().remove(unCd);<br />

}<br />

//CLASE CD:<br />

package hacetodo;<br />

public class Cd {<br />

private int numero;<br />

private Funcionario funcionario;<br />

}<br />

public Cd() {<br />

this.setNumero(0);<br />

}<br />

public int getNumero() {<br />

return numero;<br />

}<br />

public void setNumero(int unNumero) {<br />

numero = unNumero;<br />

}<br />

public Funcionario getFuncionario() {<br />

return funcionario;<br />

}<br />

public void setFuncionario(Funcionario unFuncionario) {<br />

funcionario = unFuncionario;<br />

}<br />

@Override<br />

public String toString() {<br />

return "Cd Nro. " + this.getNumero();<br />

}<br />

//CLASE VENTA:<br />

package hacetodo;<br />

public class Venta {<br />

private Cliente cliente;<br />

private int dia;<br />

private Cd cd;<br />

public Venta(Cliente unCliente, int unDia, Cd unCd) {<br />

this.setCliente(unCliente);<br />

this.setDia(unDia);<br />

this.setCd(unCd);<br />

}<br />

public Cliente getCliente() {

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!