you have two options:
Create 3 interfaces for Consumer, Producer and Logger and make the classes A and Z implementing them. Of course for each class you have to provide an implementation. If the implementation is the same make a more generic class (it could be abstract, you probably won't need to instantiate it) implementing the 3 interfaces and then make the classes A and Z extending the abstract class.
As you said in your post it seems this solutions don't fit your needs , so use delegation instead, in the classes A and Z put 3 new fields (as instance variable) of Consumer, Producer and Logger type (you can instantiate them in the constructor) and then put methods which are wrappers for the Consumer, producer and Logger methods.