O'Reilly logo

C# Primer Plus by Klaus Michelsen

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

Introduction

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 ...

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