Hi Masoumeh,
yes you can do so.
when you assign the value, you need to assign it to the sub class.
ex. in java:
DvAmount da;
DvCount dc = new DvCount(10);
da = dc;
In case you have DvAmount (assigned to DvCount object), and you want the
DvCount object, you can cast it like this:
dc = (DvCount ) a;
Hope this help,
cheers,
Kruy Vanna
- - - - - - - - - - - - -
On Mon, Jun 8, 2009 at 6:08 PM, Masoumeh Seydi <simorgh_000 at yahoo.com>wrote:
> Hi All,
> Could it be possible to use an abstract data type (like DV_ORDERED,
> DV_AMOUNT, ...) as a type for any data?
>
> Regards
> Masoumeh
>
>
> _______________________________________________
> openEHR-technical mailing list
> openEHR-technical at openehr.org
> http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20090608/1babb0c1/attachment.html>