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 Interfaces in Java!
You have completed Interfaces in Java!
Preview
In this video we'll introduce interfaces and see what type of problems they can solve!
Related Links
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
In the last course,
0:00
we saw how inheritance let's us use
existing classes to help build new ones.
0:01
Unfortunately, there are a couple problems
that can't be solved by inheritance.
0:06
Which means it's time to talk
about the birds and the bees.
0:11
You see, birds and
0:16
bees are both capable of flight,
meaning they both have a fly method.
0:17
However, since not all animals can fly,
0:23
these two fly methods are totally
separate, which isn't ideal.
0:26
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