Some of the methods such as name are defined as class attributes with leading underscore. This is a convention for private variables, but does not actually make the variable private. Consider using property decorator, https://www.geeksforgeeks.org/python-property-decorator-property/
Some of the methods such as
name
are defined as class attributes with leading underscore. This is a convention for private variables, but does not actually make the variable private. Consider using property decorator, https://www.geeksforgeeks.org/python-property-decorator-property/