Bummer! You must be logged in to access this page.

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

General Discussion

Object 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

Object-oriented programming (OOP) is a programming language model organized around objects rather than "actions" and data rather than logic.

Thanks Cindy, could you explain what an object is and an action. I get confused.

Object 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. :dizzy:

As HTML is not a programming language how can it have an object like the DOM?

The DOM is something totally different. The DOM is a JavaScript thing that can manipulate HTML elements.

How does JavaScript use objects? Sorry, I am bombarding you with questions.

Look at the Treehouse JavaScript course for that. You can learn all about it