Hi,
Is this an already establised design
pattern?
1) An interface, say I
2) A class, say A, that implements the interface I
3) Another class, say B, that implements I and extends A
4) Another class, say C, that implements I and extends A
Now, A has a couple of abstract methods for separate functional implementations in B and C. B and C also share some of the common methods of A. These commmon methods in A can call the abstract methods which will be called dynamically based on whether B or C, as a concrete implementation of I, is in operation.
This seems to me an efficient way to delegate reponsibilities at runtime.
Comments?