1. can you do without them, sure ... can you write polymorphic code without them .. sure. but let's say you have a class car. and you want to divide that in (say:) a sportscar, a familycar, ... all of these will have different implementations of: shiftUp() or speedUp() since … Read More
I'll try to explain this with an example. Let's talk about a simple templating system which is based on a single Template interface. Every different template implementation has a different way of interpolating variables, convention used for representing data etc. But all templates also share a common piece of logic: … Read More
[quote]Sorry, but I still didn't get it.[/quote] Fair enough. To understand the need for a solution, you need to first have a good grasp on the problem you are trying to solve. So my question to you is: what would be your solution if you are asked to come up … Read More