oop - Is it bad to use a lot of polymorphism? -


i've heard using lot of polymorphism bad , it's better code design avoid polymorphism ever possible. true?

no, quite few design patterns implemented using polymorphism. factory pattern 1 of more common patterns use it.

it fundamental part of object oriented programming.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -