That allow to write few-liner code
So what is your dream job as a software developer? Whatever it may be, object-oriented programming aka OOP is something you definitely want to add to your skill set. It is all about writing apps in terms of real world concepts like coffee, pizza or cat β more of a way of doing things and approaching problems rather than using a particular library orβ¦
Source: https://medium.com/codex/php-examples-of-polymorphism-ab70d58cf41a