Originally posted by deepa sabbani:
can we achieve through composition
Sure. You can simulate it. But why?
I guess if you have some sort of mechanism that references through composition, then have a relationship table (along with method jump table), you can simulate inheritence -- provided that everyone uses your mechanism for calling / casting, etc. But this would be a lot of work to simulate something that is already supported.
Henry