Top "Encapsulation" questions

In OOP, mechanism for restricting access to some of the object's components or a design principle encouraging decoupling from implementation details.

How can I expose iterators without exposing the container used?

I have been using C# for a while now, and going back to C++ is a headache. I am trying …

c++ stl iterator encapsulation
Doctrine2 ORM does not save changes to a DateTime field

I have a User entity: use Doctrine\ORM\Mapping as ORM; /** * ExampleBundle\Entity\User * * @ORM\Entity() */ class User { // ... /** * @ORM\Column(…

oop doctrine-orm encapsulation
What good are public variables then?

I'm a total newbie with tons of ?'s in my mind and a lot to experience with C++ yet! There's …

c++ oop encapsulation
Cannot provide arguments when creating an instance of generic type

I have an object that I want to have read only after it is created... namely because the properties in …

c# json generics encapsulation