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
http://en.wikipedia.org/wiki/Adapter_pattern
Your problem is solved by the adapter pattern. I went back to check the wiki document, just to be sure :)