O'Reilly logo

Visual C#® 2012: How to Program, Fifth Edition by Harvey Deitel, Paul Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercises

20.3 (Generic Notation) Explain the use of the following notation in a C# program:

public class Array<T>

20.4 (Overloading Generic Methods) How can generic methods be overloaded?

20.5 (Determining which Method to Call) The compiler performs a matching process to determine which method to call when a method is invoked. Under what circumstances does an attempt to make a match result in a compile-time error?

20.6 (What Does this Statement Do?) Explain why a C# program might use the statement

Array< Employee > workerlist = new Array< Employee >();

20.7 (Generic Linear Search Method) Write a generic method, Search, that implements the linear-search algorithm. Method Search should compare the search key with each element in its array parameter ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required