using System.Collections.Generic;
Console.WriteLine("Enter 1 to add savings and 2 to add current");
choice = Convert.ToInt16(Console.ReadLine());
AddSavingsaccount A = new AddSavingsaccount();
Console.WriteLine("list of students added sucessfully");
AddCurrentaccount B = new AddCurrentaccount();
Console.WriteLine("list of students added sucessfully");
public interface ICategory
public class AddSavingsaccount:ICategory
List<string> listsavingsacc= new List<string>();
Console.WriteLine("Give no of savingsaccounts you are adding");
int c= Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Enter name"+i);
name = Console.ReadLine();
listsavingsacc.Add(name);
public class AddCurrentaccount:ICategory
List<string> listcurrentacc= new List<string>();
Console.WriteLine("Give no of currentaccounts you are adding");
int c= Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Enter name");
name = Console.ReadLine();
listcurrentacc.Add(name);