I very well know that it can be done with the help of interfaces and i have done it many times. But this time my situation is quite difference. I have class A ,
class A
Make use of composition. Class C will contain an instance each of classes A and B.