Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Data Structures Exploring the Java Collection Framework Using ArrayLists

Kevin Faust
Kevin Faust
15,353 Points

at the end, a Course class?

ive never seen this class before and im wondering what this class is used for?

1 Answer

It is just an example to introduce the theme of hierarchy. You are right, this was not used before in this video.

Moved comment to the answer section.

Kevin Faust
Kevin Faust
15,353 Points

can you tell me what a Course class is used for?

It's just as Bruno said. It is nothing more but example to help you understand the concept you should learn in this video. If you want, you can create your own example with a whole different class.

Kevin Faust
Kevin Faust
15,353 Points

ok thanks. i feel Craig should tell us when something is just an example as I get confused often on these things

He did say "Let's assume that we have a Course type object", meaning this is all just an example.