Skip to content
Topic

Proper Type Encapsulation

2 posts about Proper Type Encapsulation by 1 contributor.

Know Proper Type Encapsulation? Share what you know with developers who are learning it.

+ Follow Proper Type EncapsulationBe the first to follow this
Articles
2
Contributors
1

Articles about Proper Type Encapsulation

  1. Article · OOP/OOD

    Proper Type Encapsulation - Part Two

    In part 1 of this article, I explained how to implement proper data encapsulation. In part 2 I want to talk about encapsulating business logic. I see this missing in a lot of type design, especially when using an ORM like Entity Framework.

    David MccarterDavid Mccarter14,9511,000
  2. Article · OOP/OOD

    Proper Type Encapsulation - Part One

    Encapsulation is one of the fundamentals of OOP (object-oriented programming). It refers to the bundling of data with the methods that operate on that data. Encapsulation is used to hide the values or state of a structured data object inside a class, preventing unauthorized parties' direct access to them. Publicly accessible methods are generally provided in the class (so-called getters and setters) to access the values, and other client classes call these methods to retrieve and modify the values within the object.

    David MccarterDavid Mccarter15,6211,000