Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Constants 7:23
- Add a Constant 1 objective
- Filling the Dispenser 7:17
- Changing State 2 objectives
- Abstraction at Play 8:34
- Computed Properties 2 objectives
- Incrementing and Decrementing 8:28
- Increment and Decrement 3 objectives
- Method Overloading 8:00
- Overload Methods 2 objectives
- Exceptions 7:50
- Throwing Exceptions 1 objective
- Handling Exceptions 1 objective

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Constants are values that never change. Let's use the `static` keyword to provide information at the class level instead of the instance level.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
David kim
306 Points1 Answer
-
Mitchell Smit
9,219 PointsStatic vs. Non-Static. Can someone give a clear difference between static and non- static, maybe a real life example?
Posted by Mitchell SmitMitchell Smit
9,219 Points1 Answer
-
sohtainoguchi
817 Points1 Answer
-
Julie Austin
1,322 Points1 Answer
-
Tianerad 999
4,063 Points2 Answers
-
Ben Kaufman
6,813 PointsCan't seem to create a new instance of the PezDispenser Object using jshell and I can't spot why
Posted by Ben KaufmanBen Kaufman
6,813 Points3 Answers
-
Mher Allahverdi
1,686 Points2 Answers
-
Glenn Wallace
3,701 Pointscannot assign a value to final variable characterName
Posted by Glenn WallaceGlenn Wallace
3,701 Points1 Answer
-
PLUS
rehan guddu
Courses Plus Student 122 Points3 Answers
-
Tara Edwards
1,355 Pointspd.Max_PEZ; I keep getting a cannot find symbol error in jshell
Posted by Tara EdwardsTara Edwards
1,355 Points1 Answer
-
Ranak Bansal
1,207 PointsWhy did the teacher use %d and %n instead of %s and /n?
Posted by Ranak BansalRanak Bansal
1,207 Points2 Answers
-
Ranak Bansal
1,207 Points2 Answers
-
Jun Dong
4,754 Points1 Answer
-
Yves Le Palud
4,894 Points2 Answers
-
Alex Read
991 PointsHow come final is used after public in a 'public' variable, but before 'private' in a private variable?
Posted by Alex ReadAlex Read
991 Points1 Answer
-
Zachary Martin
3,545 Points1 Answer
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up