We will discuss three features of OOP, compare their implementation in Java and JavaScript.

Photo by Christopher Gower on Unsplash

Because the Wiki is already available, I just copied it, do not explain again around:

  • Encapsulation: Hide information. This property does not allow the user of objects to change the intrinsic state of an object. Only the internal methods of an object allow to change its state. It is up to the code writer to allow…