The THREE pillars of Object Oriented Programming:
Polymorphism, Encapsulation, and Inheritance — These are the three properties that define if any language follows OOPS laws or not. Let’s go through each one of them quickly –
Poly — many, Morphs — forms Polymorphism means anything with many forms. To elaborate with the simplest example given below:
Inheritance means that the child class can be derived from the parent class having all the properties of the parent class and also some additional properties of its own.
Yes, it does, through the concept of scoping. Check the example below to understand better
To dive deep into the topic refer to this article.
Read more about programming languages here.