Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Interview question: difference between object and object-oriented languages [closed]

My friend was asked the following question: what's the difference between object language and object-oriented language?

It's a little unintelligible question. What does term «object language» correspond to? Does that mean «pure» object-oriented language, like the Wikipedia article says:

Languages called "pure" OO languages, because everything in them is treated consistently as an object, from primitives such as characters and punctuation, all the way up to whole classes, prototypes, blocks, modules, etc. They were designed specifically to facilitate, even enforce, OO methods. Examples: Smalltalk, Eiffel, Ruby, JADE, VB.NET.

like image 433
MiKo Avatar asked Apr 28 '10 18:04

MiKo


People also ask

What is the difference between object-oriented language and object based language?

Object-oriented languages do not have the inbuilt objects whereas Object-based languages have the inbuilt objects, for example, JavaScript has window object. Examples for Object Oriented Languages include Java, C# whereas Object-based languages include VB etc.

How do you answer OOPs concepts in interview?

Your answer should be: Object-Oriented Programming refers to the programming paradigm defined using objects instead of only functions and methods. The objects contain data, called fields or attributes, and methods that provide the logic or supporting code.

What is the difference between OOPs and OOPs?

OOPS stands for object oriented programming system while OOBS stands for Object based programming language.


2 Answers

Unless the person was interviewed by a philosopher talking about an abstract metalanguage, or an old-school engineer talking about the end result a compiler produces, the question sounds like semantic masturbation by someone who doesn't speak the same language as the rest of the industry.

So in other words, the distinction is whatever the interviewer wants it to be. (Or perhaps the question was misheard). I don't think most developers would think that the terms are connected enough to be worthy of comparison and contrast.

The right response would probably be in the style of a psychoanalyst: What do you think it means? Ask clarifying questions to make sure you understand what the interviewer is asking and assuming. Then leave and don't call the employer back, because you don't want to work there.

like image 72
JasonTrue Avatar answered Sep 22 '22 11:09

JasonTrue


  • The term object does not have an official, widely used or otherwise well-known definition.
  • The term object language does not have an official, widely used or otherwise well-known definition.
  • The term object-oriented does have an official definition, but that is usually completely ignored, not widely used nor otherwise well-known.
  • The term object-oriented language does not have a single official, widely used or otherwise well-known definition, it is usually understood to mean
    • a language in which object-oriented programming is possible or
    • a language in which only object-oriented programming is possible or
    • a language in which object-oriented programming is easy or
    • a language in which object-oriented programming is easy and non-object-oriented programming is hard or
    • a language in which everything is an object or
    • any combination of the above or
    • something completely different (and note that in any of the above you can substitute arbitrary definitions for "object" and "object-oriented")

In short: the interview question roughly translates to "what's the difference between this thing I'm not going to tell you what it is and that other thing I'm also not going to tell you what it is?"

like image 27
Jörg W Mittag Avatar answered Sep 21 '22 11:09

Jörg W Mittag