VCS2010_05_01 – Arrays and Collections of Objects

Building on our discussion of both Arrays and Classes, Bob looks at the pro’s and con’s of using simple arrays to store collections of references to objects through a series of examples. He then introduces the System.Collections namespace, and one type of collection specifically (ArrayList) demonstrating the added features you get by using a Collection rather than an Array to manage a group of objects. But when Bob tries to add a different type of object to the collection, problems start to crop up. This will provide the basis of conversation for the remainder of the day … how to add manage instances of different types who may share something in common (like the Print method). This also provides the basis for a discussion of the third tenet of Object Oriented Programming, namely “polymorphism”.

« Previous LessonVisual C# 2010 Express Edition for Absolute BeginnersNext Lesson »

 

Watch a 1 Minute Preview of this Video

This is a short preview that demonstrates the quality of the screencasts we offer at LearnVisualStudio.NET.

Scroll down and click the play button in the lower-left hand corner of the video player to start watching.

The full length video is 15 Minutes, 37 Seconds and is available to LearnVisualStudio.NET members. Join today!

 

 

 

 

 

Bob, we love the videos – good presentation & pace. They’re a great way to help beginners get up to speed quickly.Mark Jewett , Senior Manager
SQL Server, Microsoft Corporation

1 Year Membership

$75per year
(it’s about $6 a month)

  • Watch hundreds of screencasts
  • New training each week
  • Stream instantly via Vimeo … even works on iOS (and *some* Android devices)!
  • Download source code

Learn More …

Lifetime Membership

$200pay just once
keep learning new .NET stuff

  • 1 Year benefits, plus …
  • Download video files to keep. Powered by Amazon S3 (blazing fast).
  • Q & A Get answers to your questions about the videos

Learn More …


10 Year Anniversary Sale - 30% Off - ENDING SOON!!!    Learn more ...