'''
Created on Mar 7, 2018

@author: berag
'''

class Employee():
    def __init__(self, first, last):
        self.first = first
        self.last = last
        #self.email = first + '.' + last + '@gmail.com'
    @property
    def email(self):
        return '{}.{}@gmail.com'.format(self.first, self.last)
    
    @property
    def fullname(self):
        return '{} {}'.format(self.first, self.last)
    
    @fullname.setter
    def fullname(self, name):
        first, last = name.split(name)
        self.first = first
        self.last = last
        
    @fullname.deleter
    def fullname(self):
        print('Deleted full name!')
        self.first = None
        self.last = None
        
        
emp1 = Employee('Gour', 'Bera')
emp1.fullname = 'Gour Bera'

print(emp1.fullname())
print(emp1.fullname)
print(emp1.email)

del emp1.fullname

    