classes are a part of Object Oriented Programming - OOP, which is an alternative way of looking at data and functions.
say you have a book on your shelf. That book is an object - it has variables (an author, number of pages, etc) and methods (read, open, turn page etc).
In the same way, you can treat program data like this. A shopping cart is an object in the same way as a basket or a trolley in your local supermarket. It contains items that you are going to buy, and you can add and remove items from the cart (add and remove are methods).
hope that helps
adam