[charm] [ppl] regarding oops concepts
mille121 at illinois.edu
Sun Feb 19 14:41:31 CST 2012
Yes, chares can inherit from other chares and plain c++ objects. When you
inherit from a chare, declare it that way in your ci file, and inherit the
implementing class foo from cbase_foo. From some other c++ class inherit
from the cbase class and from the desired class.
Polymorphism works exactly as expected. Any virtual entry method will call
through the object pointer and execute the most derived class method
On Feb 19, 2012 7:05 AM, "Karthikeyan palani" <karthikeyankkn at gmail.com>
Can we use oops concepts like inheritance,polymorphism etc in charm++??
If yes, do we have to create chare for each class ?
Need your help,
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the charm