protected string CustName;
public Customer(int c, string d)
Console.WriteLine(CustId+"\n"+CustName);
class RegularCustomer:Customer
public RegularCustomer(int c, string d, string p): base(c,d)
public void DisplayPayment()
Console.WriteLine(payment);
public static void Main()
Console.WriteLine("Enter the Customer ID, Customer Name and the Payment");
int c=Convert.ToInt32(Console.ReadLine());
string d=Console.ReadLine();
string e=Console.ReadLine();
if(e=="credit"||e=="cash")
RegularCustomer r=new RegularCustomer(c,d,e);
Console.WriteLine("Enter the correct Payment (credit/cash)");