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 Edad");
this.age = Int32.Parse(Console.ReadLine());
public static void Main()
Student newStudentExample = new Student();
Student temp = new Student();
Console.WriteLine(":::Inicio:::");
Console.WriteLine("Ingrese la opcion que desea cambiar");
Console.WriteLine("1. Id");
Console.WriteLine("2. Nombre");
Console.WriteLine("3. Programa");
Console.WriteLine("4. Promedio");
Console.WriteLine("5. Edad");
Console.WriteLine("0. salir ");
int opcion = Int32.Parse(Console.ReadLine());
Console.WriteLine("Ingrese una opcion valida");