I am trying to create a bank scenario where the worker inputs the customer id and the customer's information is displayed, i've had issues with the class being inaccessible, and now it can't seem to find it at all.
public class Program
{
public class customer1
{
string name = "Akan Udoh";
int id = 101;
String type = "Current";
}
public class customer2
{
string name = "Clara Udoh";
int id = 102;
string type = "Savings";
}
public class customer3
{
string name = "jane doe";
int id = 103;
string type = "Fixed deposit";
}
static void Main(string[] args)
{
Console.WriteLine("Enter Customer id");
int id = Convert.ToInt32(Console.ReadLine());
switch (id)
{
case 101:
customer1 customer1 = new customer1();
Console.WriteLine(customer1);
Console.WriteLine(customer1);
Console.WriteLine(customer1);
break;
case 102:
customer2 customer2 = new customer2();
Console.WriteLine(customer2);
Console.WriteLine(customer2);
Console.WriteLine(customer2);
break;
case 103:
customer3 customer3 = new customer3();
Console.WriteLine(customer3);
Console.WriteLine(customer3);
Console.WriteLine(customer3);
}
}
}