Instantiating Class Instances3:58 with James Churchill
In this video, we'll review the solution to the first challenge and introduce our second challenge—instantiating instances of the classes that we created in the first challenge.
- In the Program.cs file
Main()method, use the
newkeyword to create at least one instance of each of your media type classes.
- For each of the objects that you create, set each field to an appropriate value.
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