What's A Class?!

8.10.15


When trying to understand what a Class is and does at firt was very confusing. The easiest way for me to grasp this concept was to imagine it as a way of organizing everything. A class is a way of correctly managing and helps let you bundle methods in a convienet way. Here is a small example of a class that explains what a class actually holds. A typical class will hold a collection of methods along with variables and other objects that help make the easiest readable and editable program...



This basic class gives you an idea of what the structure looks like but now you may be asking why do we need them?
The best way for me to answer this is organization. Classes allow you to initialize variables that can be use throughout different methods. You can even combine classes by inheritance which helps you organize methods and objects within your program.

These model a real-world object mainly because they allow change. Whether this change be pre-determined or something random. The organization of a class is key. It helps not only you as the original programmer, easily navigate. But it helps other people that will view and edit the program as well. It gives them a solid base which they can easily manipulate because of the good orginization classes allow you to accomplish.

blogs