What is Object Oriented Programming?

915 viewsOtherTechnology

I can’t really wrap my head around OOP. Like I understand an array and a function and a variable, but I don’t understand what an object is. Why can’t we just use functions and variables everytime we need information or code to run? I code in Python and JS mainly, so objects are truly the most important thing, but I don’t really get it. Also, isn’t every program object orientated? Even C, does it not fit the definitions? If so, how is it any different from C++?

In: Technology

25 Answers

Anonymous 0 Comments

The idea is that if you use nothing but global functions and variables in a big, complex program, you’re going to have more/worse bugs than if you used a bunch of hermetically-sealed objects each with its own internal functions and variable settings inaccessible to the rest of the program. YMMV.

You are viewing 1 out of 25 answers, click here to view all answers.