© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
R. VystavělC# Programming for Absolute Beginnershttps://doi.org/10.1007/978-1-4842-7147-6_7

7. More About Objects

Radek Vystavěl1  
(1)
Ondřejov, Czech Republic
 

You have seen an object act as a data conglomerate, or container. You have seen the data it contains as its properties that can be accessed after appending a dot to the object’s name. Accessing a property means either questioning its value or assigning a new value to it.

You have also discovered that (possibly many) actions can be associated with an object. Actions are called methods, and like properties, they can be accessed after appending a dot to the object’s name. Moreover, accessing a particular ...

Get C# Programming for Absolute Beginners: Learn to Think Like a Programmer and Start Writing Code 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.