What is Object Oriented Programming?

903 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

You already know what a function is? An object is just data that has functions that act only on that data.

So you have a jump function? What should jump? The only data that function knows about. If you wanted something else to jump, you would have asked THAT data’s jump function.

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