-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Add term entry for Single Inheritance in Python #7096
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add term entry for Single Inheritance in Python #7096
Conversation
|
This commit adds a new term entry under `content/python/concepts/inheritance/terms/single-inheritance/`. It includes: - Metadata and SEO-optimized description - Definition with clear examples - Syntax section - Visual diagram for understanding - A runnable Codebyte in Python - Cross-links to related concepts Closes Codecademy#7078
1f16320
to
936945e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @Prankisster , thank you for contributing to Codecademy Docs, the entry is nicely written! 😄
I've suggested a few changes, could you please review and modify those at your earliest convenience? Thank you! 😃
content/python/concepts/inheritance/terms/single-inheritance/single-inheritance.md
Outdated
Show resolved
Hide resolved
content/python/concepts/inheritance/terms/single-inheritance/single-inheritance.md
Outdated
Show resolved
Hide resolved
content/python/concepts/inheritance/terms/single-inheritance/single-inheritance.md
Outdated
Show resolved
Hide resolved
content/python/concepts/inheritance/terms/single-inheritance/single-inheritance.md
Show resolved
Hide resolved
content/python/concepts/inheritance/terms/single-inheritance/single-inheritance.md
Outdated
Show resolved
Hide resolved
content/python/concepts/inheritance/terms/single-inheritance/single-inheritance.md
Outdated
Show resolved
Hide resolved
content/python/concepts/inheritance/terms/single-inheritance/single-inheritance.md
Show resolved
Hide resolved
content/python/concepts/inheritance/terms/single-inheritance/single-inheritance.md
Outdated
Show resolved
Hide resolved
Visual structure of single inheritance: | ||
|
||
``` | ||
+-------------+ | ||
| Vehicle | | ||
|-------------| | ||
| start_engine| | ||
+------+------+ | ||
| | ||
▼ | ||
+-------------+ | ||
| Car | | ||
|-------------| | ||
| drive | | ||
+-------------+ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we have a pictorial represenatation of single inheritance here?
Example: https://www.codecademy.com/article/what-is-python-inheritance
content/python/concepts/inheritance/terms/single-inheritance/single-inheritance.md
Outdated
Show resolved
Hide resolved
Thanks @mamtawardhani for the thoughtful review! |
Description
This pull request adds a new term entry titled "Single Inheritance" under the path:
content/python/concepts/inheritance/terms/single-inheritance/single-inheritance.md
The entry includes:
## Syntax
section with usage format## Example
with real-world context## Codebyte
section with runnable Python codeIssue Solved
Closes #7078
Type of Change
Checklist
main
branch.Issues Solved
section.