In Chapter 3, “A Guided Tour through C#: Part I,” Chapter 4, “A Guided Tour through C#: II,” and Chapter 5, “Your First Object-Oriented Program,” you met two of the predefined types in C#, int and string. You saw how it was possible to specify whether a variable was meant to hold whole numbers, by declaring it to be of type int, or to represent text, by declaring it to be of type string.
In the simple elevator simulation program, you were shown how to define and use your own custom-made, types such as the Elevator and Person classes. In particular, you encountered the possibility of combining the following ingredients to construct the Elevator class.
Two of the predefined types in C#, int and string
The pre-fabricated types from .NET's ...