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 trialAlex Watts
8,396 PointsObject Oriented Programming?
Hello,
What is Object Orientated Programming? Is there any outstanding books that I can read to help me grasp this concept. I need it explained at its simplest!
Thanks :)
5 Answers
Cindy Lea
Courses Plus Student 6,497 PointsObject-oriented programming (OOP) is a programming language model organized around objects rather than "actions" and data rather than logic.
Alex Watts
8,396 PointsThanks Cindy, could you explain what an object is and an action. I get confused.
Alexander Davison
65,469 PointsObject Oriented Programming (OOP) is very useful when you want to define real-life nouns, such as a dog has the functions "play" and "bark", and the variables "name" and "owner". OOP can group those together, which is very handy.
Alex Watts
8,396 PointsAs HTML is not a programming language how can it have an object like the DOM?
Alexander Davison
65,469 PointsThe DOM is something totally different. The DOM is a JavaScript thing that can manipulate HTML elements.
Alex Watts
8,396 PointsHow does JavaScript use objects? Sorry, I am bombarding you with questions.
Alexander Davison
65,469 PointsLook at the Treehouse JavaScript course for that. You can learn all about it