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

Self-Review Exercises

10.1 Fill in the blanks in each of the following statements:

a) string class static method _________ is similar to method Console.Write, but returns a formatted string rather than displaying a string in a console window.

b) If a method contains a local variable with the same name as one of its class’s fields, the local _________ variable the field in that method’s scope.

c) The _________ is called by the garbage collector before it reclaims an object’s memory.

d) If a class declares constructors, the compiler will not create a(n) _________.

e) An object’s _________ method can be called implicitly when an object appears in code where a string is needed.

f) Composition is sometimes referred to as a(n) _________ relationship. ...

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