Introduction
Classes help you create your own types to group data and actions together. They let you build objects that can hold information and do things.
When you want to model real-world things like a car or a person with properties and actions.
When you need to create multiple objects that share the same structure and behavior.
When you want to organize your code by grouping related data and functions.
When you want to use inheritance to create a new class based on an existing one.
When you want to keep your code clean and easy to understand by using objects.