# coding=utf-8
class Report:
def create_head(self):
pass
def create_body(self):
pass
class year_Report(Report):
def create_head(self):
print '创建年度报告头'
def create_body(self):
print '创建年度报告体'
class month_Report(Report):
def create_head(self):
print '创建月度报告头'
def create_body(self):
print '创建月度报告体'
class Director:
def __init__(self, report):
self.report = report
def create_report(self):
self.report.create_head()
self.report.create_body()
if __name__ == "__main__":
report = month_Report()
director = Director(report)
director.create_report()