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 trialKevin Faust
15,353 Pointsat the end, a Course class?
ive never seen this class before and im wondering what this class is used for?
1 Answer
Bruno Pedroso
2,388 PointsIt is just an example to introduce the theme of hierarchy. You are right, this was not used before in this video.
Kristian Terziev
28,449 PointsKristian Terziev
28,449 PointsMoved comment to the answer section.
Kevin Faust
15,353 PointsKevin Faust
15,353 Pointscan you tell me what a Course class is used for?
Kristian Terziev
28,449 PointsKristian Terziev
28,449 PointsIt'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
15,353 PointsKevin Faust
15,353 Pointsok thanks. i feel Craig should tell us when something is just an example as I get confused often on these things
Kristian Terziev
28,449 PointsKristian Terziev
28,449 PointsHe did say "Let's assume that we have a Course type object", meaning this is all just an example.