Object oriented programming (Introduction) - Article 1
Hi Folks, Let's start off on OOP and C++. This is an introductory article for the bigger things coming in the future weeks. What is OOP or Object oriented programming? OOP stands for object oriented programming. C#, C++ and Java are examples of object oriented languages, where as C, Pascal are examples of procedural languages. Modularity, extensibility, reusability and maintainability are some of the advantages of OO languages. In OOP, the software programs are organized as OBJECTs. All the entities in OOP are modelled as objects. Suppose a problem is given, in procedural langauge like C, the problem is divided into functions (actions on data) and data are declared, whereas in C++, the problem is modelled as objects. For example, a problem on car in C will look like, float brake; float acceleration; main() { accelerate_the_car(); if(obstacle == true) apply_brake(); } void accelerate_the_car() { } void appl