O'Reilly logo

Pro C# 7: With .NET and .NET Core by Philip Japikse, Andrew Troelsen

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

© Andrew Troelsen and Philip Japikse 2017

Andrew Troelsen and Philip Japikse, Pro C# 7, https://doi.org/10.1007/978-1-4842-3018-3_5

5. Understanding Encapsulation

Andrew Troelsen and Philip Japikse2

(1)Minneapolis, Minnesota, USA

(2)West Chester, Ohio, USA

In Chapters 3 and 4, you investigated a number of core syntactical constructs that are commonplace to any .NET 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 this chapter will examine the role of encapsulation ...

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