Co-authored-by: nilbuild <4921183+nilbuild@users.noreply.github.com>
10 lines
878 B
Markdown
10 lines
878 B
Markdown
# Classes
|
|
|
|
A class is a user-defined blueprint or prototype from which objects are created. Classes provide a means of bundling data and functionality together. Creating a new class creates a new type of object, allowing new instances of that type to be made. Each class instance can have attributes attached to it for maintaining its state. Class instances can also have methods (defined by their class) for modifying their state.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@official@Classes in Python](https://docs.python.org/3/tutorial/classes.html)
|
|
- [@article@Encapsulation in Python: All You Need to Know](https://roadmap.sh/python/encapsulation)
|
|
- [@article@Python super() and init: Multiple Inheritance Guide](https://roadmap.sh/python/super-init)
|
|
- [@video@Python OOP Tutorial](https://www.youtube.com/watch?v=ZDa-Z5JzLYM&list=PL-osiE80TeTsqhIuOqKhwlXsIBIdSeYtc) |