diff options
author | Stanislav (Stanley) Modrak <44023416+smith558@users.noreply.github.com> | 2024-05-13 07:19:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-13 00:19:23 -0600 |
commit | cf670d3414e5b32eb1595bbb33f8ee4199d32f30 (patch) | |
tree | 1f52491d461b7dad895772cd53cbf331e4d81297 /python.html.markdown | |
parent | 7b4a50ac46346fb794c25ca9b4097ad7d39822b6 (diff) |
[python/en] Clarify inheritance description (#4759)
Diffstat (limited to 'python.html.markdown')
-rw-r--r-- | python.html.markdown | 4 |
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 |