Wednesday, January 22, 2014

Object-Oriented Programming

Object-Oriented Programming (OOP) is programming based around classes and objects. In the past, procedural languages are more commonly used, where the program is written in a long piece of code with data and logic all combined together. But in OOP programs instead would be split apart into self-contained objects, each object would have it's own data and logic, this makes the codes more organized. The object can represent simple things in real life, such as computers, cars, bank accounts, a cup of water, books, students....almost anything that exist. Classes and objects are the two very common terms in OOP. A class is a blueprint of a well defined idea, with attributes and methods, and we create objects based on the class.