👩💻 Join our community of thousands of amazing developers!
In this blog post, I would like to speak about an important concept in Oriented Object Programming which is the encapsulation principle. Before speaking about encapsulation let’s talk a bit about OOP. What is the object’s life cycle? The first step of the object’s life cycle is to be instantiated. We give everything an object needs to initialise its internal state. Then we use its public API (public methods) to communicate with it. An object exposes a public API (behaviour) that manipulates its ...