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

Summary

Section 10.2 Time Class Case Study

• The public methods of a class are part of the public services or the public interface that the class provides to its clients.

• Methods and properties that modify the values of private variables should verify that the intended new values are valid.

• A class’s methods and properties can throw exceptions to indicate invalid data.

• The actual data representation used within the class is of no concern to the class’s clients. This allows you to change the implementation of the class. Clients could use the same public methods and properties to get the same results without being aware of this change.

• Clients are neither aware of, nor involved in, a class’s implementation. Clients generally care about ...

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