"Polymorphism is the ability to provide the same interface for classes with different implementations. It helps simplify code with abstraction."

You can explain in detail what polymorphism is in the context of OOP. Why it is needed, what problem it solves. What is his connection with abstraction? When to use static, and when dynamic?

Closed due to the fact that the question is too common for the participants Vlad from Moscow , αλεχολυτ , Mikhail Vaysman , Harry , 13 Feb '17 at 13:46 .

Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • four
    The question is too general. Read books on OOP. - Vlad from Moscow
  • 2
    Polymorphism is a kind of encapsulation complement. Encapsulation represents an object in the form of a black box with “levers” by means of which you can control this box. Polymorphism goes further, allowing you not to think about where these “levers” lead and what a controlled box is in general. - ߊߚߤߘ

0