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 trialCarolina Estrada
1,285 PointsJust to clarify, the fields he is referring to is the instance variable?
Just a little confused when he refers to the variable in a class as a fields because we don't call it that in class, so I wanted to make sure.
1 Answer
Juan Naputi
1,772 PointsYes. The variable he is referring to is a field. Depending on the language, and sometimes the person, it can vary. In Java, I've heard people mainly call them fields. But, in languages like C#, people call them fields or properties based on how they are declared. But, you are also correct in that it is an instance variable.
Carolina Estrada
1,285 PointsCarolina Estrada
1,285 PointsThanks for the clarification!