Skip to content

Commit b2b460d

Browse files
committed
Constructor
1 parent 94125ac commit b2b460d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Employee Inheritance.ipynb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@
6262
" def print(self):\n",
6363
" return \"Overring : {} {} {} {}\".format(self.first,self.last,self.email,self.pay)\n",
6464
" \n",
65+
" def __init__(self,f ,l ,p, l ):\n",
66+
" self.first=f\n",
67+
" self.last=l\n",
68+
" self.email=f+\".\"+l+\"@python.com\"\n",
69+
" self.pay=p\n",
6570
" \n",
6671
" \n",
6772
"emp_1=Employee(\"Soumyadip\",\"Chowdhury\",900000)\n",

0 commit comments

Comments
 (0)