The 3 key principles of object orientated programming are
➢ Encapsulation: Encapsulation is important because it provides a powerful way to store, hide, and manipulate data while giving you increased control over it. Encapsulation can be used when dealing with secure data or methods because it can restrict which functions or users have access to certain information.
➢ Inheritance: Inheritance is a mechanism that allows a class to inherit properties and behaviors from another class. It’s a programming procedure that allows you to reuse code by referencing the behaviors and data of an object.
➢ Polymorphism: Polymorphism is the ability for something to take on many forms. In terms of a programming language exhibiting this characteristic, we can create class objects that are inherited from the same parent class and have the same names but different behaviors.