Introduction
The included hook runs code automatically when a module is added to a class. It helps set up things right away without extra steps.
When you want to add methods or variables to a class as soon as a module is included.
When you need to run setup code automatically for classes using your module.
When you want to add class-level methods or extend behavior on inclusion.
When you want to keep your code organized by separating setup logic inside the module.