Summary

This chapter is divided into three main parts. The first part provides an overview of the different kind of members a class can contain. The second part focuses on data members and, in particular, static instance variables. The third part zoomed in on the parts of the method construct we haven't yet discussed in previous parts of the book. These are reference and output parameters, parameter arrays, method overloading and the this keyword.

Some of the most important points discussed in this chapter are as follows.

The class construct can contain members of three different categories—data members, function members, and nested types. Data members represent the data of the class, function members contain blocks with series of statements ...

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.