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
suryansh
5,993 PointsConfusion regarding Java Objects.
I was doing the Java Objects course and can't seem to understand it. Perhaps someone could help me out by giving me a basic syntax for objects. Example:- The basic syntax for a 'for' loop would be :
for( initialization; condition; increments/decrements) { }
I understand how to make the object in a separate file. The only part I don't understand is the one where Craig declares the member of the object in the common file.
Your help is greatly appreciated. Thank you!