Facebook
From 1, 5 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 55
  1.  
  2. from Employee import Employee
  3.  
  4. class Developer(Employee):
  5.     def __init__(self,d,n,p):
  6.         print("Inside Developer init method")
  7.         self._Developer__prog_lang=d
  8.         super().__init__(n,p)
  9.  
  10.  
  11.  
  12. from Employee import Employee
  13.  
  14. class Developer(Employee):
  15.     def __init__(self,d,n,p):
  16.         print("Inside Developer init method")
  17.         self._Developer__prog_lang=d
  18.         super().__init__(n,p)
  19.        
  20.        
  21.        
  22.  
  23. class Employee:
  24.     def __init__(self,n,p):
  25.         self._name=n
  26.         self._pay=p
  27.         print("Inside Employee init method")
  28.         self._email=str(str(self._name)+"@gmail.com")