Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
In this video, we'll review the solution to the second challenge and introduce our third and final challenge—adding constructors to our classes.
Instructions
3rd Challenge
- Add a constructor to each of your media type classes.
- Define a constructor parameter for each of the media type's required fields and use those parameter values to initialize its fields.
- Update the Program.cs file
Main()
method in order for your program to successfully compile.
Help
If you get stuck on any of the following topics or simply need a refresher, click on a topic in list below to view the associated video in the C# Objects course.
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
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