How would one explain object-oriented programming to a beginner, using a layman language?

Author: neptune | 29th-Oct-2022 | Views: 183
#Java

Here we have an explanation that you haven't seen before about OOP. It was given by a man who never had any formal engineering training, but always had a clear idea about everything he did and preached, be it technology, design or art.


Here, in an excerpt from a 1994 Rolling Stone interview, Jobs explains What is object-oriented programming?


Jeff Goodell: Would you explain, in simple terms, exactly what is object-oriented programming?


Steve Jobs: Objects are like people. They're living, breathing things that have knowledge inside them about how to do things and have memory inside them so they can remember things. And rather than interacting with them at a very low level, you interact with them at a very high level of abstraction, like we're doing right here.


Here's an example: If I'm your laundry object, you can give me your dirty clothes and send me a message that says, "Can you get my clothes laundered, please." I happen to know where the best laundry place in San Francisco is. And I speak English, and I have dollars in my pockets. So I go out and hail a taxicab and tell the driver to take me to this place in San Francisco. I go get your clothes laundered, jump back in the cab, I get back here. I give you your clean clothes and say, "Here are your clean clothes."


You have no idea how I did that. You have no knowledge of the laundry place. Maybe you speak French, and you can't even hail a taxi. You can't pay for one, you don't have dollars in your pocket. Yet I knew how to do all of that. And you didn't have to know any of it. All that complexity was hidden inside of me, and we were able to interact at a very high level of abstraction. That's what objects are. They encapsulate complexity, and the interfaces to that complexity are high level.



anonymous | Nov. 9, 2022, 3:01 p.m.

Well explained 👍



Related Blogs
How to use wait commands in Selenium WebDriver in Java ?
Author: neptune | 22nd-Feb-2022 | Views: 1214
#Selenium #Testing #Java
We are going to explore different types of waits in Selenium WebDriver. Implicit wait, Explicit wait, and Fluent wait with examples...

25 Basic Java interview questions.
Author: neptune | 30th-May-2022 | Views: 622
#Interview #Java
We will explore 25 basic Java interview questions...

Best way to reverse a String for beginners in Java.
Author: neptune | 02nd-Oct-2022 | Views: 408
#Java
We will explore How to reverse a String in Java using simple way. If you are beginner in Java then you are at the right place...

Difference b/w String, StringBuffer, and StringBuilder
Author: neptune | 23rd-Sep-2022 | Views: 66
#Java
String is a sequence of characters in Java. String is a class in the java.lang package. String objects are immutable in nature...

View More