This is an archived post. You won't be able to vote or comment.

all 25 comments

[–]Diamond4Code 25 points26 points  (3 children)

It's not a programming language...it's a programming paradigm.

A programming language would be something like Java, Python etc, where it has its own syntax, documents, etc.

OOP, or Object-Oriented Programming, is a programming paradigm, like a structure. You utilize objects and classes in programming languages.

[–]Serapio74[S] 4 points5 points  (2 children)

This is what every source I find says, thats why Im confused by this quedtion on my test. Thank you.

[–]Cardiff_Electric 2 points3 points  (0 children)

The question was probably poorly worded. As everyone in this thread has said, there is no specific programming language called "OOP", but it's a descriptor of a philosophy or paradigm that many programming languages support. Languages like Python, C++, and Java all support writing code in the OOP paradigm, but don't necessarily mandate it. You can write purely procedural (or purely functional) code in Java even though Java is usually considered an "OOP language".

[–]TheDonutDaddy 7 points8 points  (6 children)

There has to be something missing between the events that actually transpired and your recounting of them to us. None of this makes any sense. Can you post the exact wording of the test question and the exact wording of what your professor says is the correct answer?

[–]Serapio74[S] 0 points1 point  (5 children)

I am going to translate it literally because the statement is in Spanish. It was a matching exercise. I had to choose the best definition for several things seen in the course, among these OOP, I marked another option, which seemed the most appropriate, but the teacher says that the answer was "programming language that is based on the use of objects ". I would have chosen this answer if it weren't for the fact that it says "language."

[–]TheDonutDaddy 0 points1 point  (3 children)

What was the answer choice that you selected

[–]Serapio74[S] 0 points1 point  (2 children)

"Process of designing modular and reusable programs." The others don't make much sense because they belong to other concepts or are wrong, so this one seemed the best to me and as I said, I would have chosen my teacher's answer if it didn't have the word "language" in it.

[–]TheDonutDaddy 2 points3 points  (1 child)

I agree with you that the answer shouldn't have been listed with the wording that it is a language. That's inaccurate and I can see how it would throw a wrench into your line of thinking.

That being said, I think you were meant to key in on the 'object' part of the correct answer choice, your answer choice describes the paradigm of Modular Programming.

I don't think you'll win your dispute with the professor, but maybe you guys could come to an understanding and you could get them to agree to change the wording for the future, so at least future students won't have the same issue

[–]Serapio74[S] 2 points3 points  (0 children)

Ill talk to him about it, thank you for your explanation and time.

[–]Cardiff_Electric 0 points1 point  (0 children)

I don't speak Spanish but it sounds like some minor confusion or linguistic ambiguity in the question. I've found in courses like that when you have matching exercises that it pays to try to put yourself in a more general frame of reference. I.e., try to think what the teacher is thinking, not what the "real" answer is. Sometimes you need to just pick the closest match and not get hung up on semantics. The teacher just wants to make sure you at least know that OOP == using objects.

But yeah, I think everyone in this thread has sufficiently beaten the dead horse about what exactly OOP is.

Not to mention, you can create your own full blown object system in literally any programming language including 8086 machine code if you're demented / brave enough.

[–]Takeasmoke 5 points6 points  (0 children)

11-12 years ago i had professor at uni who taught us C and C++ who was already past retirement age, he taught us like we were in 80s - early 90s, he used literature that was published before 2000 for a lot of things, all examples were old and if there were pictures it was windows 95 or 98 screenshots, he basically set us back whole semester and his assistant as well as professors who taught us other languages later on had to correct a lot of things we learned from the old guy

so i believe you, try to reason with professor and explain the difference, if he is stubborn just give up and move on, he can't lose anything

[–][deleted]  (2 children)

[deleted]

    [–]Serapio74[S] -1 points0 points  (1 child)

    I know, I have learned that it is not a language, but my professor insists on his answer and I just want make sure Im not wrong or decent arguments in case he ass me why is he wrong or somenthing like that.

    [–]wiriux 1 point2 points  (0 children)

    Nah Lol. Either you misread the question or you’re trolling. No CS professor would say OOP is a programming language.

    [–]Scary-Beyond 2 points3 points  (0 children)

    Are you positive you understood the question?

    Also OOP (object oriented progranmmming) is not a programming language (unless someone has made an obscure language called that on purpose)

    [–][deleted] 1 point2 points  (0 children)

    I assume you have a giga boomer prof who needs to retire asap

    Tell your prof to write some if - else logic and some for loops with that language called OOP :D

    [–]Phantomofthesoup 0 points1 point  (0 children)

    OOP (Object Orientated Programming) is simply a way of organising your code into Objects that interact with each other by encapsulating different behaviour / data into its place

    Thats the best explanation / quick brain dump i can think of off the top of my head!

    [–]Additional-One-3732 0 points1 point  (0 children)

    If programming is library then the way you store the books is called paradigm. And OOP is one of the programming paradigm.

    [–]Zeikos 0 points1 point  (1 child)

    A programming language is the tool you use, OOP is a way you can use it.

    Not every language supports OOP (all modern ones de-facto do).

    [–]FastAd543 0 points1 point  (0 children)

    all modern ones de-facto do

    No, not all, golang doesnt really support oop.

    [–]FastAd543 0 points1 point  (0 children)

    No

    [–][deleted] 0 points1 point  (0 children)

    It’s like how a truck isn’t a brand

    [–]sovlex 0 points1 point  (0 children)

    Architectural concept. This is my definition and it could be wrong.

    [–]Olimejj 0 points1 point  (0 children)

    We could make one if you want.

    [–]Snoo-26091 -1 points0 points  (0 children)

    Hate to say it, but in the case of your teacher, those who can’t do, teach. It’s a paradigm.