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

4.5 What is the purpose of operator new? Explain what happens when this keyword is used in an app.

4.6 What is a default constructor? How are an object’s instance variables initialized if a class has only a default constructor?

4.7 Explain the purpose of an instance variable.

4.8 Explain how an app could use class Console without using a using directive.

4.9 Explain why a class might provide a property for an instance variable.

4.10 (GradeBook Modification) Modify class GradeBook (Fig. 4.12) as follows:

a) Include a second string auto-implemented property that represents the name of the course’s instructor.

b) Modify the constructor to specify two parameters—one for the course name and one for the instructor’s name.

c) Modify method ...

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