[omniORB] Interface inheritance or Code inheritance?

bjorn rohde jensen bjensen@fastmail.fm
Wed Sep 4 13:57:01 2002


Hi Michael,

  Implementation inheritance is usually done by deriving virtually
from the POA_* classes to ensure, that invocations are dispatched
to the proper base class.

Base_i:public virtual POA_Base,
        public virtual PortableServer::RefCountServantBase {....};


Derived_i:public Base_i,
           public virtual POA_Derived,
           public virtual PortableServer::RefCountServantBase {...};

You do not need to implement methods inherited from POA_Base unless,
you want to change the implementation for CORBA objects of type
POA_Derived.

Yours sincerely,

Bjorn