Exemple #1
0
        public override string ToString()
        {
            string mostrar = "";

            for (int i = 0; i < alumnos.Count; i++)
            {
                mostrar += Alumno.Mostrar(alumnos[i]) + "\n";
            }
            return(mostrar);
        }
Exemple #2
0
        public override string ToString()
        {
            string lista = "";

            foreach (Alumno item in this.GetAlumnos)
            {
                lista = lista + Alumno.Mostrar(item) + "\n";
            }
            return(lista);
        }
 public override string ToString()
 {
     return(Alumno.Mostrar(this));
 }
 public string Mostrar()
 {
     return(Alumno.Mostrar(this) + " - Nota:" + this.Nota.ToString());
 }
 public string Mostrar()
 {
     return(Alumno.Mostrar(this) + " nota: " + this.nota);
 }
Exemple #6
0
 public string Mostrar()
 {
     return(Alumno.Mostrar(this) + ", " + this.nota.ToString());
 }
Exemple #7
0
 //sobrecarga del ToString
 public override string ToString()
 {
     return(Alumno.Mostrar(this));//llama al mostrar de alumno y muestra el elem
 }