Short Bytes: Do you want to read a real-life example to understand the Object-Oriented Programming? You are at the right place as we are sharing one of the best explanations on the subject given by Steve Jobs himself.
Many people avoid calling him a programmer or an engineer, but nobody would deny that he was a visionary. He said that it took a very unique combination of technology, talent, business, marketing, and luck to change what he called the “fastest-moving industry in the world.”
Here, I’d like to share with you an expert from a 1994 Rolling Stone interview, where Steve Jobs explains exactly what object-oriented software is. It’s one of the best explanations about object-oriented programming I’ve come across till date.
Give it a read:
Jeff Goodell: Would you explain, in simple terms, exactly what object-oriented software is?
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, I 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.
Did you enjoy this real life example used by Steve Jobs to explain object-oriented programming and software? Tell us in the comments below.