I guess many people know about the Visitor design pattern, described in the Gang of Four’s Design Patterns: Elements of Reusable Object-Oriented Software book. The pattern itself is not very complex (as many design patterns go): I’ve known Visitor since ages, but I’ve never needed it… yet. Java handles polymorphism natively: the method call is [...]
↧