class DbManager:
def insert(self):
pass
def dele(self):
pass
class DbManager:
def insert(self):
pass
def dele(self):
pass
class MSSQLMgr(DbManager):
def insert(self):
print "插入MSSQL"
def dele(self):
print "删除MSSQL"
class MySQLMgr(DbManager):
def insert(self):
print "插入MySQL"
def dele(self):
print "删除MySQL"
if __name__ == "__main__":
msqslMgr = MSSQLMgr()
mysqlMgr = MySQLMgr()
msqslMgr.insert()
mysqlMgr.insert()