The four pillars of object-oriented programming are encapsulation, inheritance, polymorphism and abstraction. Each one is a way to manage complexity in a large code base:
Encapsulation bundles data with the methods that use it and hides the internal details, usually behind private fields.
Inheritance lets a new class reuse and extend an existing class, as when Dog extends Animal.
Polymorphism lets objects of different types respond to the same method call in their own way.
Abstraction exposes only the essential features of an object and hides how they work, through abstract classes and interfaces.
Rewriting in plainer words…
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.