re-formatting the diamond

This commit is contained in:
Jidong Xiao
2025-04-14 19:29:18 -04:00
committed by JamesFlare1212
parent 33cf2cbeaa
commit 114bc00e8b

View File

@@ -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.
<pre> \`\`\` Human / \ Student Worker \ / CSStudent \`\`\` </pre>
```
Human
/ \
Student Worker
\ /
CSStudent
```
- Both Student and Worker inherit from Human.