You can define a base class for A
and B
where you can hold a common methods/properties/fields of those.
After implement C:Base
.
Or in order to simulate multiple inheritance, define a common interface
(s) and implement them in C
Hope this helps.