static void Main(string[] args) { Student a = new Student("Alibek", "18BD110"); //Student info, entering the class a.PrintInfo(); //Calling function }
static void Main(string[] args) { Student a = new Student("Alibek", "18BD110", 1); a.PrintInfo(); }