[Edu-sig] Another Class / Instance metaphor

kirby urner kirby.urner at gmail.com
Thu Feb 19 18:20:05 CET 2015

I'm finding a useful metaphor that resonates with my students is the fast
food franchise, or really and chain store, petrol station chain or whatever.

class KFC:
    """defines how long to cook the chicken in what batter, also signage,

>>> restaurant_on_sandy_blvd = KFC(lat_long)  # from Google KML file

shows a specific restaurant getting stamped out by the cookie cutter class

Here in the USA, we define ourselves in terms of strip malls with

"What's America without White Castle?"

Or at least that resonates with some people.  Organized religions work the
same way.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/edu-sig/attachments/20150219/13d219c8/attachment.html>

More information about the Edu-sig mailing list