Beispiel #1
0
        static void Main(string[] args)
        {
            Student student1 = new Student("Aigerim", "Seiilbekova", "15BD02050", "FIT", 2.6);

            Console.WriteLine(student1);
            Console.ReadKey();
        }
     static void Main(string[] args)
     {
     Student s = new Student("Zhazira", "Umirkalykova", 2.67);
     Student a = new Student("name", "Surname");
     Console.WriteLine(s);
     Console.WriteLine(a);
     Console.ReadKey();
 }
Beispiel #3
0
 static void Main(string[] args)
 {
     Student a = new Student();
     a.name = "Nurly";
     a.surname = "Baimnuratova";
     a.ID = "15BD02097";
     a.GPA = 4.0;
     a.printFullName();
     Console.ReadKey();
 }
Beispiel #4
0
     static void Main(string[] args)
     {
         string name = Console.ReadLine(); // считывает имю и фамилию
         string surname = Console.ReadLine();
         double gpa = Convert.ToDouble(Console.ReadLine()); //change the string to double in order to understand the gpa as it is the real number
         Student information = new Student(name, surname, gpa); // create he information about the student
         Console.WriteLine(information); // задаем информацию именно имя, фамилия, гпа
    
     Console.ReadKey();
 }