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