re-formatting the diamond
This commit is contained in:
committed by
JamesFlare1212
parent
33cf2cbeaa
commit
114bc00e8b
@@ -14,7 +14,13 @@
|
|||||||
|
|
||||||
- The Diamond Problem occurs in multiple inheritance when two classes inherit from the same base class, and a fourth class inherits from both of those.
|
- The Diamond Problem occurs in multiple inheritance when two classes inherit from the same base class, and a fourth class inherits from both of those.
|
||||||
|
|
||||||
<pre> \`\`\` Human / \ Student Worker \ / CSStudent \`\`\` </pre>
|
```
|
||||||
|
Human
|
||||||
|
/ \
|
||||||
|
Student Worker
|
||||||
|
\ /
|
||||||
|
CSStudent
|
||||||
|
```
|
||||||
|
|
||||||
- Both Student and Worker inherit from Human.
|
- Both Student and Worker inherit from Human.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user