Welcome to the Treehouse Community
Looking to learn something new?
What's the difference between fields and methods?
I'm still new to programming and been learning java just for 4 days. I have passed the java basics, and now learning the java objects.
I'm still confused between the difference of "fields" and "methods". Help please. Thanks!
William LiCourses Plus Student 26,867 Points
Yeah, these OOP terms got me quite confused when I was taking Java course in college yrs ago; In the simplest way possible, you can just think of them as:
- fields -- variables bound to an object.
- methods -- functions bound to an object.