my6jay30

Untitled

Feb 22nd, 2021
415
177 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Employee:
  2.     def __init__(self, firstName, lastName):
  3.         self._firstName, self._lastName = firstName, lastName
  4.         self._fullName = '{} {}'.format(self._firstName, self._lastName)
  5.         self.email = self._firstName[:3].lower() + '.' + self._lastName + "@prjpartners.com"
  6.  
  7.     def __repr__(self):
  8.         return "customer:{0}, {1} ".format(self.fullName, self.email)
  9.  
  10.     @property
  11.     def fullName(self):
  12.         return self._fullName
  13.  
  14.     @fullName.setter
  15.     def fullName(self, fullName):
  16.         self._fullName = fullName
  17.         name = fullName.split()
  18.         self.email = ".".join(name) + "@prjpartners.com"
  19.  
  20.     @property
  21.     def firstName(self):
  22.         return self._firstName
  23.  
  24.     @property
  25.     def lastName(self):
  26.         return self._lastName
  27.  
  28.     @firstName.setter
  29.     def firstName(self, firstName):
  30.         self._firstName = firstName
  31.         self._fullName = '{} {}'.format(self._firstName, self._lastName)
  32.         self.email = self._firstName[:3].lower()+ '.' + self._lastName + "@prjpartners.com"
  33.  
  34.     @lastName.setter
  35.     def lastName(self, lastName):
  36.         self._lastName = lastName
  37.         self._fullName = '{} {}'.format(self._firstName, self._lastName)
  38.         self.email = self._firstName[:3].lower()+ '.' + self._lastName + "@prjpartners.com"
  39.  
  40.     def delete_fullName(self):
  41.         self._fullName = ""
RAW Paste Data