ubu
03/22/2018, 1:30 PMSomeInterface
.
And two realisations (Impl1
, Impl2
) that are almost the same, except for one of the properties (its dependencies): Impl1
has a Repository1
, Impl2
has a Repository2
. Repository 1
and Repository2
are two subclasses of SomeRepository
,
I would like to inherit in Impl1
all the properties and methods of Impl2
, except for Repository
.
How would I do that? Repository 1
and Repository2
are only related by common parent class.