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 trialAdam Stenning
7,132 Points"Undeclared but Uninitialized".
When Craig is setting the PezCount to store how many many Pez are in the dispenser, he says "So for now, let's just leave this undeclared but uninitialized", (0:49).
What does he mean by this?
Many thanks,
1 Answer
adrian miranda
13,561 PointsI think he meant to say "declared but uninitialized". He had declared it:
private int pezCount;
But he didn't bother to set a value. So, it is still uninitialized.