//增加--交互 static void CreateClass() { Console.WriteLine("请输入一个班级名称"); string name = Console.ReadLine(); ClassName classname = new ClassName(); classname.Name = name; ClassBusiness cb = new ClassBusiness(); cb.Add(classname); }