Skip to content

Commit 94125ac

Browse files
committed
print(help(Developer))
1 parent 5882e37 commit 94125ac

File tree

1 file changed

+35
-3
lines changed

1 file changed

+35
-3
lines changed

Employee Inheritance.ipynb

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 9,
5+
"execution_count": 10,
66
"metadata": {},
77
"outputs": [
88
{
@@ -11,7 +11,37 @@
1111
"text": [
1212
"Soumyadip Chowdhury [email protected] 900000\n",
1313
"Soumyadip Chowdhury [email protected] 100000\n",
14-
"Overring : Soumyadip Chowdhury [email protected] 700000\n"
14+
"Overring : Soumyadip Chowdhury [email protected] 700000\n",
15+
"Help on class Developer in module __main__:\n",
16+
"\n",
17+
"class Developer(Employee)\n",
18+
" | Developer(f, l, p)\n",
19+
" | \n",
20+
" | Method resolution order:\n",
21+
" | Developer\n",
22+
" | Employee\n",
23+
" | builtins.object\n",
24+
" | \n",
25+
" | Methods defined here:\n",
26+
" | \n",
27+
" | print(self)\n",
28+
" | \n",
29+
" | ----------------------------------------------------------------------\n",
30+
" | Methods inherited from Employee:\n",
31+
" | \n",
32+
" | __init__(self, f, l, p)\n",
33+
" | Initialize self. See help(type(self)) for accurate signature.\n",
34+
" | \n",
35+
" | ----------------------------------------------------------------------\n",
36+
" | Data descriptors inherited from Employee:\n",
37+
" | \n",
38+
" | __dict__\n",
39+
" | dictionary for instance variables (if defined)\n",
40+
" | \n",
41+
" | __weakref__\n",
42+
" | list of weak references to the object (if defined)\n",
43+
"\n",
44+
"None\n"
1545
]
1646
}
1747
],
@@ -39,7 +69,9 @@
3969
"print(emp_1.print())\n",
4070
"print(emp_2.print())\n",
4171
"dev_1=Developer(\"Soumyadip\",\"Chowdhury\",700000)\n",
42-
"print(dev_1.print())"
72+
"print(dev_1.print())\n",
73+
"\n",
74+
"print(help(Developer))"
4375
]
4476
},
4577
{

0 commit comments

Comments
 (0)