patient(int patient_id, string first_name, string last_name, int insurance_id){
patient_id = this.patient_id;
first_name = this.first_name;
last_name = this.last_name;
insurance(int insurance_id, string company_name){
insurance_id = this.insurance_id;
company_name = this.company_name;
Billing getBillingDetails(p1){
billing_name = p1.patient_name;
billing_address= p1.patient_address;
billing_name = p1.i1.company_name;
billing_address= p1.address;
if (DateTime.Now.Month == bill_date ){
billing_amount = s1.getCurrentmonThbill();
days_past_due = bill_date - DateTime.Now.Month;
public static void Main()
Insurance ins = new Insurance(1 , "Delta");
Patient patient = new Patient(1, "ABC", "XYZ", 1);
Billing biling = new Billing (1, patient.id);
billing.getBillingDetails();