© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. Troelsen, P. JapiksePro C# 10 with .NET 6https://doi.org/10.1007/978-1-4842-7869-7_5

5. Understanding Encapsulation

Andrew Troelsen1   and Phil Japikse2
(1)
Chambersburg, PA, USA
(2)
West Chester, OH, USA
 

In Chapters 3 and 4, you investigated a number of core syntactical constructs that are commonplace to any .NET Core application you might be developing. Here, you will begin your examination of the object-oriented capabilities of C#. The first order of business is to examine the process of building well-defined class types that support any number of constructors. After you understand the basics of defining classes and allocating objects, the remainder of ...

Get Pro C# 10 with .NET 6: Foundational Principles and Practices in Programming 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.