Professional Documents
Culture Documents
Tutorial Week 4
Tutorial Week 4
Understand Objects
o Define a class containing a related set of methods and data items.
o Control the accessibility of members by using the public and private keywords.
o Create objects by using the new keyword to invoke a constructor.
o Write and call your own constructors.
o Create methods and data that can be shared by all instances of the same class by
using the static keyword.
Understand Values and References
o Explain the differences between a value type and a reference type.
o Modify the way in which arguments are passed as method parameters by using
the ref and out keywords.
Detailed instructions to complete the practical exercises in this session are given in Chapter 7
and Chapter 8 of the book “Microsoft Visual C# 2010 Step by Step” by John Sharp, which is
available from of the University Library’s ebook collection.
To access the book, click the Web Links item on the left navigation menu on the CS6004
Weblearn page. Then click the item of the book on the Web link page. This will take you to the
University Library page to access the book. You will need your university username and
password to access the book.
Preparation: