static void Main(string[] args) { //Pupil p1 = new Pupil() //p1.CatalogNumber = 5; //p1.Name = "Bugelnig"; Pupil p1 = new Pupil("Bugelnig", 5); Console.WriteLine(p1.GetPupilData()); Pupil p2 = new Pupil("Kandut", 11); Console.WriteLine(p2.GetPupilData()); Pupil p3 = new Pupil("Kraschl"); Console.WriteLine(p3.GetPupilData()); }
static void Main(string[] args) { //Pupil p1 = new Pupil() //p1.CatalogNumber = 5; //p1.Name = "Bugelnig"; Pupil p1 = new Pupil("Bugelnig", 5); Console.WriteLine(p1.GetPupilData()); Pupil p2 = new Pupil("Kandut", 11); Console.WriteLine(p2.GetPupilData()); Pupil p3 = new Pupil("Kraschl"); Console.WriteLine(p3.GetPupilData()); Console.ReadLine(); Console.WriteLine("\n\n\nPress any key to continue"); Console.Clear(); }