If you want to change your class but do not want change the way to use the class which avoid other people must be change their code.
- There are to way to use:
- Use <field_name> = property(<fucn_name>, <func_name>, ...)
- Use @property decorator
If you want to change your class but do not want change the way to use the class which avoid other people must be change their code.