public void SetStudent(string id, string name, string program, float average, int age)
this.programStudent = program;
this.averageStudent = average;
public void ShowAllData()
Console.WriteLine("::DATOS ESTUDIANTE::");
Console.WriteLine("ID:" + this.idStudent);
Console.WriteLine("Nombre:" + this.nameStudent);
Console.WriteLine("Programa:" + this.programStudent);
Console.WriteLine("Promedio:" + this.averageStudent);
Console.WriteLine("Edad:" + this.ageStudent);
public void SetName(string name)
Console.WriteLine("Ingrese id");
this.idStudent = Console.ReadLine();
Console.WriteLine("Ingrese Nombre");
this.nameStudent = Console.ReadLine();
Console.WriteLine("Ingrese Carrera");
this.programStudent = Console.ReadLine();
Console.WriteLine("Ingrese Promedio");
this.averageStudent = float.Parse(Console.ReadLine());
Console.WriteLine("Ingrese edad");
this.ageStudent = Int32.Parse(Console.ReadLine());
public static void Main()
Student newStudentExample = new Student();
newStudentExample.Form();
newStudentExample.ShowAllData();