General information
Category:
Object Oriented Programming
>You want to avoid CASE and IF statements in OOP?
No, just those that are predicated on the type of object. That's what polymorphism seeks to avoid.
One reason is that when you introduce a new child class, you have to hunt all through your code and add another clause to those statements.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only