static void Main(string[] args) { business b = new business(); foreach (employee e in b.emp()) { Console.WriteLine(e.Id + "\t" + e.Name + "\t" + e.Salary); } }
static void Main(string[] args) { business b = new business(); foreach (employee e in b.emp()) { Console.WriteLine(e.Id + "\t" + e.Name + "\t" + e.Salary); } Console.WriteLine("-------------------------------------------------------"); // b.insorup(new employee() { Id = 5, Name = "shit", Salary = 70000 }); Console.WriteLine("max salary is " + b.maxsal()); Console.WriteLine("no of employees are " + b.noemp()); }