Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Digital Literacy Computer Basics Computer Languages Programming Paradigms

'object oriented programming often uses code objects to mirror real world objects'' ---- what does this mean .

'object oriented programming often uses code objects to mirror real world objects'' ---- what does this statement mean . what is meaning of term ''code object''? and what is object oriented programming basically i am not getting and how is this used to program web and all . can u plz help me in this case..

2 Answers

Hey again umang! Great to see that your so curious about digital literacy! Once again tho you are asking a question that is not easy to explain when you havent actually started coding yet. That being said, what are objects in programming? Well most programming languages, C++, Python, Javascript, Java etc. are whats called Object Oriented Programming languages. An object is bascily everything, Python states that: Objects are Python’s abstraction for data. All data in a Python program is represented by objects or by relations between objects. (In a sense, and in conformance to Von Neumann’s model of a “stored program computer,” code is also represented by objects.). Basicly all data is "objects" a list is an object, a string, a number, everything. So you really shouldent get too confused when you hear the term objects. Just know that they reffere to some data. Since every kind of data in the languages are objects, its called object oriented languages. Now how is this used to program the web? Well thats kind of a strange question. "The web" isnt programmed, its just a giant web connected by routers and servers. I think what you mean to ask is how are objects used to program? Well when were talking about programming all we have is information (or data if you like). Data that we can manipulate and do with as we please, this is what programming is. So basicly when im saying we manipulate data, im also saying that we manipulate objects right? Because objects = data. That being said i strongly recommend that you jump on in to a programming language umang! Because a lot of your confusions will be picked up when you actually get to start writing code yourself (I recommend starting with Python because its very userfriendly). Please write back if you need more help!

again i am truly impressed by your kindness towards students and generosity to instruct other students in the way they want in detail. i whole heartedly thank you and hope that you answer the each and every question i ask in future since u r the one who judges the mindset of the beginner very well. u r a true teacher of mine. u should be the instructor at team treehouse .

and is there any way that i can ask doubts directly to you on team treehouse instead of linking my doubt in already answered string since as said by you a newly created string with the remarkable answers of urs would definitely help the basic beginners like me who have the same basic questions as mine could retain help from that .

Haha that was heart touching comment umang. Again im glad that i could help, and ill be sure to lookout for your name in the community! If youd like to tag a member of treehouse in a thread you can use an @ followed by the name of the student, when you start typing a drop down box should appear with names of members, press the name of the member you would like to tag. umang ketam

Shay Paustovsky
Shay Paustovsky
969 Points

Hi Umang, So I haven't taken the Digital Literacy course but fortunately I know that object-oriented-programming or (OOP) is a paradigm in programming that refers to portraying real-life object but simply in code. It's okay not to understand the idea if you had never written a single line of code.

But in the nutshell : Programming languages offer classes, structs, etc.. to abstract the way things work. A good example would be a radio, you know how to use it, but you don't know how it really works internally. Objects in programming are almost the same as their counterparts. they consist of: properties, methods, and more which abstract the way they work.

I would recommend to begin learning any heavily object-oriented programming language just to understand the concept behind it. I would recommend 'Java Basics' it's where I started my programming journey.

I the context of web development the most object-oriented you will get is with JavaScript if you stick with front-end web development, unless you go back-end and then be ready for your mind to explode ;)

Happy Coding and hopefully it helped you :)

Shay