what is main objective of developing the concept of object oriented programming | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

what is main objective of developing the concept of object oriented programming

27th Jan 2018, 2:26 PM
vaishnavi singh
vaishnavi singh - avatar
2 Answers
+ 1
We code to make computers do stuff, but writing code is a human activity. As Vlad said, the idea behind OOP is to write code that kind of models the real world that is easy for humans to deal with, and has been very successful in large applications
27th Jan 2018, 10:08 PM
Dan Walker
Dan Walker - avatar
0
Order. Large programs in non-OOP languages, like C, are inherently chaotic and hard to understand. Meanwhile, in object-oriented language each element is an object (like in real life), and has a number of attributes and a number of things it can do (again like in real life). This simplifies everything. Especially in debugging. Say you're debugging a game, and an enemy behaves in an unexpected way, you know where to look: that enemy's class. Moreover if he did so while moving, you check his move method. If all enemies are acting like that, you check the class from which all specific enemies inherit. You get the point.
27th Jan 2018, 2:46 PM
Vlad Serbu
Vlad Serbu - avatar