sk*******@yahoo.co.in wrote:
and what is object delagation, and how it can implemented?
There is no concept of "pure abstract class" in C++. So, I'd say there
is no difference. Of course, one could always pull some concept by the
ears and say that a "pure abstract class" is an abstract class that has
no data members. Is that good enough to deduce the difference?
Have you tried searching the web for "pure abstract class" and "object
delegation" (yes, it's spelled a bit differently)? If not, what is
stopping you? If you did, what have you found? Is there something in
those web pages you don't understand? "Delegation" is implemented in
C++ through inheritance or containment. Slap polymorphism on top of
it and you get a very powerful run-time mechanism for extending object's
functionality.
V
--
Please remove capital As from my address when replying by mail