Explain the core pillars of OOP and how you implemented polymorphism and encapsulation in your automation framework.