js
4 Pillers of the Opp

4 pillers of the OPP

      Encapsulation: A collection of the data and function in the class
    like this car exmaple we put all varibales like model color speed engine and functionality or method like start stop we pu in one class that we called car
      Abstraction: A way to hide the details and and just show the functionality
    like remote control you just press the next button and you don't know what happend how it's send signall and it's to change tv services you just click to change
      Inhertitance : Inherit the attribute and methods of the class
    like behavior you inherit the behavior of your mother and father when we inherti 2 thing in one we called multy inherit
      Encapsulation: ability of a variable, function or object to take on multiple forms.
    like we have animal class and we Encapsulation to call of cat we and we rewrite some variables or method or add new features in inheritance we get copy of class but in Encapsulation we get copy and modifiy that too