This course will be retired on June 1, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Preview
Start a free Courses trial
to watch this video
We've made some improvements to the BirdWatcher data.
This video doesn't have any notes.
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
[MUSIC]
0:00
Our bird watcher data,
now has a bit more complexity to it.
0:04
We've got more birds in our data and
we're keeping track of birds habitat,
0:08
size and conservation status.
0:12
Each bird has a family and
a scientific name.
0:15
They usually have more than one color and
come from all over the world.
0:18
We track the habitats
they live in by country.
0:22
We're also tracking individual reports
of people who have cited the birds and
0:25
each sighting has the time and
place someone spotted the bird.
0:29
As we move through the next few videos,
we'll be applying our new knowledge
0:33
on Linked to practice and help us learn
more about our bird watching data.
0:38
Let's take a look at our
improved bird class.
0:43
I'm going to close the console to
make it a little bigger for us.
0:48
Okay, we've got common
name instead of just name.
0:52
We've got properties for
family, scientific name.
0:56
Instead of just color,
we've got primary colors,
1:00
secondary color and
a list of strings for tertiary colors.
1:02
It's got a length, width, weight and
then we've got a string size,
1:07
it looks like it returns us a string
based on the length property.
1:14
We've got a list of sightings,
that are of type sighting.
1:19
And we've got a list of habitats
that are of type place.
1:23
We'll take a look at those two later.
1:26
We've also got a conservation
status which is a string,
1:29
it looks like this is our list
of conservation statuses.
1:32
They also have a code.
1:36
We've got an override method for
two strings, so it prints out the name.
1:38
Then it looks like there's a constructor
here, we'll just ignore this for now.
1:43
Let's take a look at
the sighting class first.Alright
1:49
sighting looks like a bird and
a sighting date and
1:55
observer first name and last name and
it also has a place of type place.
1:59
Let's take a look at place.
2:04
Place has a bunch of strings country,
city, terrain type and climate.
2:08
Okay, let's take in the data and
see what we can find out.
2:13
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