What is Object Oriented Programming?

887 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

instead of having
String carName;
String carColor;

Void moveCar() {}

you can have class Car that has name and color and move()
it’s a way of grouping related data and functions together, it’s much more than that but that’s the gist of it.

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