Introduction
Classes help you group related data and actions together. They let you create your own types to organize code better.
When you want to model real-world things like a car or a person in your program.
When you need to keep data and functions that work on that data together.
When you want to create many similar objects with shared behavior.
When you want to reuse code by creating new classes based on existing ones.
When you want to keep your code organized and easier to understand.