© Radek Vystavěl 2017

Radek Vystavěl, C# Programming for Absolute Beginners, https://doi.org/10.1007/978-1-4842-3318-4_5

5. Working with Objects

Radek Vystavěl

(1)Ondřjov, Czech Republic

Variables of type string, int, double, and bool always contain a single value—text, a single number, or a single yes/no value. However, such “atomic” values can be grouped into aggregates that are called objects. A single object can contain multiple values that are called its components or members. Grouping can go so far that an object can contain several other objects inside itself, for example. In this chapter, you are going to learn about objects.

What Time Is It?

The first object you will encounter is a DateTime object containing various components of a single ...

Get C# Programming for Absolute Beginners 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.