Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b2b460d

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /