[charm] [ppl] regarding oops concepts
Phil Miller
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
implementation.
On Feb 19, 2012 7:05 AM, "Karthikeyan palani" <karthikeyankkn at gmail.com>
wrote:
Hi,
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.
--
karthikeyankkn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.uiuc.edu/pipermail/charm/attachments/20120219/198c677c/attachment.html
More information about the charm
mailing list