Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

General Discussion

Alex Watts
Alex Watts
8,396 Points

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

Cindy Lea
PLUS
Cindy Lea
Courses Plus Student 6,485 Points

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

Alex Watts
Alex Watts
8,396 Points

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:

Alex Watts
Alex Watts
8,396 Points

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.

Alex Watts
Alex Watts
8,396 Points

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