Adding Class Constructors5:36 with James Churchill
In this video, we'll review the solution to the second challenge and introduce our third and final challenge—adding constructors to our classes.
- 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.
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.
You need to sign up for Treehouse in order to download course files.Sign up