Skip to content

Commit 73c1523

Browse files
committedFeb 9, 2020
Inheri
1 parent 90e1bd2 commit 73c1523

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed
 

‎Employee isInstanse & isSubclass.ipynb

+10-4
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 3,
5+
"execution_count": 5,
66
"metadata": {},
77
"outputs": [
88
{
99
"name": "stdout",
1010
"output_type": "stream",
1111
"text": [
1212
"True\n",
13-
"False\n"
13+
"False\n",
14+
"True\n",
15+
"False\n",
16+
"True\n",
17+
"True\n"
1418
]
1519
}
1620
],
@@ -61,8 +65,10 @@
6165
"\n",
6266
"print(isinstance(dev_1,Developer))\n",
6367
"print(isinstance(dev_1,Manager))\n",
64-
"print(isinstance(dev_1,Developer))\n",
65-
"print(isinstance(dev_1,Manager))"
68+
"print(isinstance(man_1,Manager))\n",
69+
"print(isinstance(man_1,Developer))\n",
70+
"print(isinstance(dev_1,Employee))\n",
71+
"print(isinstance(man_1,Employee))"
6672
]
6773
}
6874
],

0 commit comments

Comments
 (0)
Failed to load comments.