summaryrefslogtreecommitdiffhomepage
path: root/python.html.markdown
diff options
context:
space:
mode:
authorStanislav (Stanley) Modrak <44023416+smith558@users.noreply.github.com>2024-05-13 07:19:23 +0100
committerGitHub <noreply@github.com>2024-05-13 00:19:23 -0600
commitcf670d3414e5b32eb1595bbb33f8ee4199d32f30 (patch)
tree1f52491d461b7dad895772cd53cbf331e4d81297 /python.html.markdown
parent7b4a50ac46346fb794c25ca9b4097ad7d39822b6 (diff)
[python/en] Clarify inheritance description (#4759)
Diffstat (limited to 'python.html.markdown')
-rw-r--r--python.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/python.html.markdown b/python.html.markdown
index a9b5f92c..0cdf256a 100644
--- a/python.html.markdown
+++ b/python.html.markdown
@@ -826,8 +826,8 @@ if __name__ == "__main__":
# variables from their parent class.
# Using the Human class defined above as the base or parent class, we can
-# define a child class, Superhero, which inherits the class variables like
-# "species", "name", and "age", as well as methods, like "sing" and "grunt"
+# define a child class, Superhero, which inherits variables like "species",
+# "name", and "age", as well as methods, like "sing" and "grunt"
# from the Human class, but can also have its own unique properties.
# To take advantage of modularization by file you could place the classes above