Facebook
From Ungracious Crocodile, 5 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 42
  1. from Employee import Employee
  2. class Developer(Employee):
  3.     def __init__(self,d,n,p):
  4.         print("Inside Developer init method")
  5.         self._Developer__prog_lang=d
  6.         super().__init__(n,p)
  7.        
  8.        
  9. class Employee:
  10.     def __init__(self,n,p):
  11.         self._name=n
  12.         self._pay=p
  13.         print("Inside Employee init method")
  14.         self._email=str(str(self._name)+"@gmail.com")
  15.  
  16.