Workshop


The Workshop is designed to help you anticipate possible questions, review what you've learned, and get you thinking about how to put your knowledge into practice.

Quiz

1.

True or False: Visual C# .NET is a true object-oriented language.

2.

An attribute that defines the state of an object is called a ____________.

3.

To change the value of a property, the property must be referenced on which side of an equal sign?

4.

What is the term for when a new object is created from a template?

5.

An external function of an object (one that is available to code using an object) is called a _______________.

6.

True or False: A property of an object can be another object.

7.

A group of like objects is called a _____________.

8.

What tool is used to explore the members of an object?

Answers

1.

True

2.

Property

3.

The left side

4.

Instantiation

5.

Method

6.

True

7.

Collection

8.

The Object Browser

Exercises

1.

Create a new project and add two text boxes and a button to the form. Write code that, when a button is clicked, places the text in the first text box into the second text box. Hint: Use the Text property of the text box controls.

2.

Modify the collections example in this hour to print the height of all controls, rather than the name.




Sams Teach Yourself Microsoft Visual C# 2005 in 24 Hours, Complete Starter Kit
Sams Teach Yourself Visual C# 2005 in 24 Hours, Complete Starter Kit
ISBN: 0672327406
EAN: 2147483647
Year: N/A
Pages: 248
Authors: James Foxall

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net