using System.Collections.Generic;
using System.Diagnostics.Eventing.Reader;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
namespace ClassesIndependentProjectU5BankProject
private string birthyear;
public Customer(string name, string address, string phone)
this.address = "15000 Brookvile";
this.phone = "444-555-4545";
public Customer(string name, string address, string phone, int age) : this(name, address, phone)
get { return birthyear; }
set { birthyear = value; }
public string Introduction()
return $"Hello {Name}, how are you doing today?";
return $"Since you are {Age}, You cannot be here.";
return $"Since you are {Age}, you are free to be here.";
public static int AgeCalculator(int age)
public static double Interest(int age)
if (age >= 18 && age < 30)
Console.Write("Your interest is ");
Console.Write("Your interest is ");
public static string CallClient(string phone)
return $"Dialing {phone}";
public static string ConfirmClient(string address)
return $"Confirming the address: {address}";
public static void Main(string[] args)
Customer customer1 = new Customer("Austin", "16000 Brookvile", "444-888-9294");
Customer customer2 = new Customer();
Console.WriteLine(customer1.Introduction());
Console.WriteLine(customer2.Checking());
int f = AgeCalculator(23);
Console.WriteLine($"For the age {2023-f}, the birthyear is {f}");
string l = CallClient(customer1.phone);
string p = ConfirmClient(customer1.address);