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

Java Java Objects (Retired) Harnessing the Power of Objects Helper Methods and Conditionals

Ok question about OOP

O.k. You explain pretty good about what to do, But there is not a huge explanation of why to do it. lIKE i dont understand why I am doing this all differently out of the main "main function" orusing main and methods on the same page. I dont get the need for classes and I am a bit confused about the classes like I know how to do em from watching your video but dont know why I am doing them.

I just wish there was more in depth information

Richard Ziegler
Richard Ziegler
1,952 Points

I'm in the same boat Ronald. I spend a lot of time feeling like I am just copying from the video to the work space, and then having to copy from the work space for the quiz. Just a lot of telling me what to do and saying "Isn't that cool?" It's sure is cool, but I don't really know why I am doing any of it.

Richard Ziegler Bro I am glad it is not only me. I was feeling that way bad I still am actually. If you figure anything different out please let me know because as you said it feels I am copy and pasting without getting any real knowledge of the concepts and situation.

1 Answer

Craig Dennis
STAFF
Craig Dennis
Treehouse Teacher

Hi Ronald!

I think you will understand this better as the course progresses, but I admire your thirst for knowledge.

Try perusing the official Java SE tutorial real quick. The tutorial will go over some things we haven't gone over yet, but I'm thinking it might fill in the gaps for you.

Basically at this point I want you to think about making a model of real life objects. This allows you and other developers to interact with the object and exposing things that the object can do, and what state it can be in at any given time. By keeping it in one place, anyone can use your object and not need to know how it is accomplishing its different actions. Think back to the radio example, you can change the channel and turn it on and off, but you don't really know how it is accomplishing it's tasks.

Let me know if it helps!

Craig Dennis
Craig Dennis
Treehouse Teacher

Ronald, someone else was wondering things as well.

Check out this post.