<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=140221608-13012006>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=140221608-13012006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=140221608-13012006>you do not need to redeclare the inherited operations.
In fact, IDL does not allow it, as you have seen.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=140221608-13012006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=140221608-13012006>Implement the polymorphism in your servant classes,
depending on your language binding. It will work!</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=140221608-13012006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=140221608-13012006>Regards, Wernke</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=140221608-13012006></SPAN></FONT> </DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> omniorb-list-bounces@omniorb-support.com
[mailto:omniorb-list-bounces@omniorb-support.com] <B>On Behalf Of </B>Warren
Brown<BR><B>Sent:</B> 13 January 2006 08:44<BR><B>To:</B>
omniorb-list@omniorb-support.com<BR><B>Subject:</B> [omniORB] Polymorphic
methods<BR></FONT><BR></DIV>
<DIV></DIV>Hi<BR><BR>Can somebody please tell me how to implement polymorphism
using Corba?<BR>I am modifying an application and making it
distributed.<BR><BR>I have 3 classes with a boolean method called
is_able().<BR>The abstract base class is called base_Check. This class is
inherited by First_Check and Last_Check.<BR><BR>A list is created using stl
list<base_Check*> mlist which contains First_Check objects and
Last_Check objects.<BR><BR>These objects are called in the program using
*(iterator_var)->is_able().<BR><BR>I haven't got a clue as to how this
would be implemented in IDL.<BR>I tried using inheritance but I
get:-<BR> Declaration of operation 'is_able' clashes with inherited
operation 'is_able'<BR><BR>So maybe I'm on the wrong
track?<BR><BR>Thanks<BR><BR><BR><BR></BLOCKQUOTE></BODY></HTML>