Simplifying Your Code with Methods

We have already discussed how the construction of an object-oriented program can be simplified by breaking it down into suitable classes. The following case study looks at how the design of an individual class can be simplified by breaking its functionality down into suitable methods. It exemplifies and stresses the importance of thinking in terms of building blocks on the method level also.

Get C# Primer Plus now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.