예제 #1
0
        public float DarPrecioAlquiler(ulong cod)
        {
            CLibro aux = this.BuscaLibro(cod);

            if (aux != null)
            {
                return(aux.DarPrecioAlquiler());
            }
            return(0.0f);
        }
예제 #2
0
        public string DarDatos(ulong cod)
        {
            CLibro aux = this.BuscaLibro(cod);

            if (aux != null)
            {
                return(aux.DarDatos());
            }
            return("Alumno inexistente");
        }
예제 #3
0
        public bool EliminarLibro(ulong cod)
        {
            CLibro aux = this.BuscaLibro(cod);

            if (aux != null)
            {
                this.listado.Remove(aux);
                return(true);
            }
            return(false);
        }
예제 #4
0
 public float GetAlquiler()
 {
     return(CLibro.GetAlquiler());
 }
예제 #5
0
 public void SetAlquiler(float alq)
 {
     CLibro.SetAlquiler(alq);
 }