public static void Main(string[] args) { string a = Console.ReadLine(); string[] s = a.Split(); Student Studik = new Student(s[0], s[1]); Studik.year = int.Parse(s[2]); Studik.Plus(); }
static void Main(string[] args) { string n1 = Console.ReadLine(); string ID1 = Console.ReadLine(); int y1 = Convert.ToInt32(Console.ReadLine()); Student s1 = new Student(n1, ID1, y1); s1.GetInfo(); s1.Plus(); }