Classes are for creating multiple sets of data with specific members and functions, for example. we have class called people, and it contains all the functions and variables of each person (in a game), and each functions are all the different ways a person can interact with the game engine, and all the variables are all data on each person. Without classes it would be impossible to create 400-500 different unique 'people' for an RPG game, this is just one example, another example is Microsoft Word, each 'New Document' is just creating a new instance of a blank page class, it has all the variables like footer/header settings, page data, ect.
There is just no way this is possible with plain functions and variables, well it is, but realistically 10x harder. Classes can be found everywhere in programming, Windows forms are classes, C# uses classes allot and Java too.
There are advanced concepts like Friendship and inheritance
You must login or register to view this content. and Polymorphism
You must login or register to view this content. that allow you to join classes together to share variables, and interact with each other differently.