1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-10 16:54:33 +02:00

[python/en] Clarify inheritance description (#4759)

This commit is contained in:
Stanislav (Stanley) Modrak
2024-05-13 07:19:23 +01:00
committed by GitHub
parent 7b4a50ac46
commit cf670d3414

View File

@@ -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