python构造方法继承重写
作者:互联网
Employee: (, salary) : .salary= salary work () : (,.salary) Customer : (, favorite, address) : .favorite= favorite .address = address info (): (%(.favorite,.address)) Manager(Employee, Customer): (, salary, favorite, address): ().(salary) Customer.(, favorite, address) m = Manager(,,) m.work() m.info()
标签:salary,Customer,构造方法,python,work,favorite,Manager,address,重写 来源: https://blog.51cto.com/u_13560219/2742564