Exemplo n.º 1
0
        private static void boi()
        {
            Another another1 = new Another();

            another1.stu();
            another1.stu("Poland");
        }
Exemplo n.º 2
0
        public Another()
        {
            Console.WriteLine("Write your Name: ");
            Name = Student.Imya();
            Console.WriteLine("Write your Surname: ");
            Surname = Student.Imya();
            Console.WriteLine("Write your Nationality: ");
            Nationality = Student.nation();
            Console.WriteLine("Write your Age: ");
            Age = Student.age();
            Console.WriteLine("Write your Weight: ");
            Weight = (int)Student.weight();
            Console.WriteLine("Write your Height in m(for example 1,89): ");
            Height = (int)Student.height();
            Console.WriteLine("Write your university: ");
            University = Another.university();
            Console.WriteLine("Write your course: ");
            Course = Another.course();
            Console.WriteLine("Write your speciality: ");
            Speciality = Another.university();
            Console.WriteLine("Write the country in which you study: ");
            country = Another.university();

            Console.WriteLine("How much money do you have?");
            A = Console.ReadLine();
            Console.WriteLine("How much money did you pay for your study?");
            B = Console.ReadLine();
            int.TryParse(A, out a);
            int.TryParse(B, out b);
        }
Exemplo n.º 3
0
 public Another()
 {
     Console.WriteLine("Write your university: ");
     University = Another.university();
     Console.WriteLine("Write your course: ");
     Course = Another.course();
     Console.WriteLine("Write your speciality: ");
     Speciality = Another.university();
     Console.WriteLine("Write the country in which you study: ");
     country = Another.university();
 }
Exemplo n.º 4
0
 public Another()
 {
     Console.WriteLine("Write your Name: ");
     Name = Student.Imya();
     Console.WriteLine("Write your Surname: ");
     Surname = Student.Imya();
     Console.WriteLine("Write your Nationality: ");
     Nationality = Student.nation();
     Console.WriteLine("Write your Age: ");
     Age = Student.age();
     Console.WriteLine("Write your Weight: ");
     Weight = (int)Student.weight();
     Console.WriteLine("Write your Height in m(for example 1,89): ");
     Height = (int)Student.height();
     Console.WriteLine("Write your university: ");
     University = Another.university();
     Console.WriteLine("Write your course: ");
     Course = Another.course();
     Console.WriteLine("Write your speciality: ");
     Speciality = Another.university();
     Console.WriteLine("Write the country in which you study: ");
     country = Another.university();
 }