C# Workshop 3 – ShapeInheritance With Lists

This week’s workshop code is available at: http://devsoc.co.uk/wp-content/uploads/2011/12/ShapeInheritanceWithLists.zip. We covered using Lists in C# to store data, in particular using a List to store different types of objects all derived from a base class. We also covered using a Switch Case to build a basic text menu, which can also be used in C++.

In the new year we will be covering an introduction to NerfCore, so if you haven’t already, head over to http://nerfgames.co.uk/forums and get registered for your engine key.

To test your understanding of this week’s work, go back to the problem set last week and extend it to use the type of text menu we made this week, add a List to store objects, write the ToString overrides and have a go at implementing a Search by Name and BubbleSort. The last two will be a bit of a challenge, but are both manageable, so give them a go!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>