class CanadianFamilyDoctor extends Doctor

I am not fond Canadian family doctors at all. Because Canada wants to provide public health care for everyone and private health care for the (slightly) rich, the entire system is screwed up. As a result, regular family doctors perform very poorly as professionals. Here is a generic class of a doctor and a Canadian family doctor, in pseudo OOP language.

Not all doctors are like this, but some unfortunate ones I’ve met are.

Doctor

class Doctor {
    var degreeOfEducation; 
 
    function Doctor (determination) {
        if(determination == "strong") {
            degreeOfEducation = 1;
            startBusiness();
        } else {
            degreeOfEducation = 0;
            exit();
        }
    }
    
    private function startBusiness () {}
}

So far so good.

Canadian Family Doctor

class CanadianFamilyDoctor extends Doctor {
    var fund;
    var salary;
    
    function CanadianFamilyDoctor () {
        super();
        degreeOfEducation = 0;
    }
    
    function startBusiness () {
        fund = Government.borrowMoney(INFINITY);
        City.openBusiness(this, fund);
        while (1) {
            salary = Government.borrowMoney(9999999);
            Sleep("one year");
        }
    }
    
    function bookAppointment (dayOfWeek) {
        if ((dayOfWeek >= 1) && (dayOfWeek <= 7)) {
            if (isSummer) {
                this.onVacation();
            } else {
                this.currentlyFull();
            }
            return 0;
        } else if (dayOfWeek == null) {
            return (date() + rand() * 30 + 5);
        }
    }
    
    function appointment (symptom) (
        if ((symptom == "running nose")) {
            informPatient("You have a cold, here.");
            chickenScratch("Tylenol");
        } else {
            informPatient("Here.");
            chickenScratch("L$d7@doFD#");
        }
        
        if (symptom == complaint || symptom == nonstop) {
            referToSpecialist();
        }
        
        collectMoney();
    }
 
    function referToSpecialist () (
        printf("Phone number: %s-%s",
            floor(rand()*999),
            floor(rand()*9999));
    }
}

And if you noticed, srand() is nowhere found in the code.

post a comment5 Comments

  1. 1March 27th, 2006EngLee says

    Hahaha. Cool implementation of OOP.

    I suppose that the reason people go for medical courses. Easy work, high pay. It’s the same case here in Malaysia.

  2. 2March 27th, 2006Oliver Zheng says

    That’s so unfair to (us) Engineers :(

  3. 3March 27th, 2006EngLee says

    Here, they (doctors) will have to spend extra years in school, and also a few years in government hospital. I suppose that’s the same case in Canada. By the time they earn big money, engineers MIGHT be making more money already. So, be sure you spend you time wisely, since you have will be in the market a few years earlier than them.

  4. 4March 27th, 2006Oliver Zheng says

    Yeah the same is mostly true for doctors here. Although they do not have to work in a government hospital, most of them will have to spend some time as an assistant for an experienced doctor.

  5. 5March 27th, 2006Jeff Wheeler says

    Haha… beautiful!

Post a Comment

Name and email are required (website is optional). Basic HTML is enabled.

Your email address is not revealed to anyone.