There are two classes A and B both extends a Class C
class A extends C
class B extends C
Now there are some common function which i want to use in class A as well as B and so i move them to class C to avoid code duplicity
There is a third class D which extends E and this class E is in a separate Jar
Now i need the common methods which i had put in C to be used in D too.
One way is to put it directly in D. but that would lead to code duplicity.
As E is in a separate jar the common code cannot be directly moved to E as the common code uses some classes in the
What way i can resolve this? Is there any way to avoid code duplicacy here and not to put the common functions in C directly under D ?