#!/usr/bin/python # TYPE:default # DESC:Object-oriented programming excercise, using stores and employees to test inheritance. class Store: def __init__(self, name): self.name=name self.employee=Chef("Joe") class Employee: def __init__(self, name): self.name=name def work(self): print self.name, "does things at" class Chef(Employee): def work(self): print self.name, "cooks things at" store = Store("Chili's") store.employee.work()