#coding=utf-8
#python还支持动态的实力属性,即那些没有在类定义里生命的属性,
#可以“凭空”创造出来
john.tatto='Mom'
#继承
class EmployeeAddressBookEntry(AddressBookEntry):
def __init__(self,name,phone,id,social):
AddressBookEntry.__init__(self,name,phone)
self.empid=id
self.ssn=social