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 C# Objects!
You have completed C# Objects!
Preview
Collections of objects can be stored in an array.
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
Tree house Defense will need to be
able to deal with groups of objects.
0:00
For example, we'll have many towers and
many invaders.
0:04
It'd be pretty difficult to keep track of
all of these objects if we had to create
0:07
a separate variable for each tower and
give each variable a different name.
0:11
What we need is to be able to keep track
of them as a collection of objects.
0:16
There's a lot of ways to
represent a collection of objects.
0:22
The simplest is an array.
0:25
You can think of an array as
a numbered list of items,
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