Polymorphism, or class switching, is a common feature of object-oriented systems. Polymorphism is the maintenance implementations behind a common interface. Polymorphism illustrates another kind of encapsulation. By placing different implementations behind a common interface, we hide these underlying strategies from the client. This means that any changes that are made behind this interface are transparent to the wider system.
No comments:
Post a Comment