GRASP (object-oriented design): Difference between revisions

Content deleted Content added
No edit summary
Line 69:
{{main|Polymorphism in object-oriented programming}}
According to the '''polymorphism''' principle, responsibility for defining the variation of behaviors based on type is assigned to the type for which this variation happens. This is achieved using [[Polymorphism (computer science)|polymorphic]] operations. The user of the type should use polymorphic operations instead of explicit branching based on type.
 
Problem How to handle alternatives based on type? How to create pluggable software components?
 
===Protected variations===