Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Practice Creating Classes in C#!
You have completed Practice Creating Classes in C#!
Preview
In this video, we'll review the solution to the third and final challenge.
This video doesn't have any notes.
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
to the Album class, public Album.
0:00
Remember, a constructor
should have the same name
0:04
as the class that it's contained within.
0:07
Then you follow the name with a set of
parentheses and a set of curly braces.
0:10
Then I added a parameter for
each of the Album's required fields.
0:17
I only have two fields, Title and
Artist, and both of them are required.
0:23
So I added title and artist parameters,
both of type string.
0:28
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