Share

Topic stats

The different representations is a bit unclear to me, I do not quite understand the latter case, what you mean by template code?, is it same as code in a template method?

The Interface entity could represent either an abstract base class, or the method signature expectations by the client. In the former case, the inheritance hierarchy represents dynamic polymorphism. In the latter case, the Interface entity represents template code in the client and the inheritance hierarchy represents static polymorphism.