public void SetStudent(string id, string nameStudent, string programStudent, float averageStudent, int ageStudent)
this.program = programStudent;
this.average = averageStudent;
public void ShowAllData()
Console.WriteLine("::DATOS ESTUDIANTE::");
Console.WriteLine("id:" + idStudent);
Console.WriteLine("Nombre:" + name);
Console.WriteLine("Carrera:" + program);
Console.WriteLine("Promedio:" + average);
Console.WriteLine("Edad:" + age);
public void SetName(string newName)
Console.WriteLine("Ingrese id");
this.idStudent = Console.ReadLine();
Console.WriteLine("Ingrese Nombre");
this.name = Console.ReadLine();
Console.WriteLine("Ingrese Programa");
this.program = Console.ReadLine();
Console.WriteLine("Ingrese Promedio");
this.average = float.Parse(Console.ReadLine());
Console.WriteLine("Ingrese Edad");
this.age = Int32.Parse(Console.ReadLine());
public static void Main()
Student newStudentExample = new Student();
newStudentExample.SetStudent("U005454", "Juan", "Ingenieria", 4.5f, 20);
Student newStudentExample2 = new Student();
newStudentExample2.SetStudent("U0089541", "Camila", "Ingenieria", 5.0f, 21);
Student temp = new Student();