Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Java Data Structures!
You have completed Java Data Structures!
Preview
Explore a good programming practice of using packages to namespace and group related files.
Definitions
- Package: a grouping of related types providing access protection and name space management.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
recommendations.
0:00
Now in order to work with these,
I'd like for us to build a blueprint
0:00
so that we can represent these movies
as objects.
0:03
So let's go make a movie class.
0:06
But before we get there,
0:08
let's learn a good practice to follow,
and that is using packages.
0:10
Packages help us make
sure that our class names
0:14
are distinguishable between other classes
that we might be using.
0:16
When packages were introduced,
the standard that was quickly
0:20
adopted was to use the reverse internet
domain name.
0:23
So our domain,
as you know, is teamtreehouse.com.
0:27
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