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 Inheritance in Java!
You have completed Inheritance in Java!
Preview
In this video we'll learn how to use abstract classes.
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
However, sometimes, it makes sense
to limit some of that freedom.
0:00
One place we might want to add
a restriction is with our animal class.
0:02
Right now, if we wanted to,
we could create a new animal object.
0:07
This might not seem like an issue,
but think about it.
0:12
What does a generic animal look like?
0:15
If I asked you to draw an animal, you
wouldn't draw some amorphous generic blob.
0:18
You'd draw a specific animal,
like a goat or a tiger.
0:23
You can't just create an animal.
0:27
It has to be something more specific.
0:29
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