Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Object Relational Feature

Re: Object Relational Feature

From: Rene Nyffenegger <rene.nyffenegger_at_gmx.ch>
Date: Fri, 24 Jun 2005 08:51:27 +0000 (UTC)
Message-ID: <d9ghie$u65$1@klatschtante.init7.net>


On 2005-06-23, sburk_at_mooseandpebs.com <sburk_at_mooseandpebs.com> wrote:
> I have a parent class (PL/SQL) and some child classes that inherit from the
> parent object.
> I have a table of the parent class type
> I have objects of the parent and children classes in the table.
> Each child has an overloaded method of the parent.
> The question is this:
> While inside a procedure in a separate package how do I deref the object
> into the a variable not knowing what type it is so I can execute the method
> of the class it is? If I deref it into the parent class it executes the
> parents method.
> Thanks!

If I understand your setup, there's no requirment to 'deref something into a parent class'.

Maybe, this link helps:
http://www.adp-gmbh.ch/ora/plsql/oo/example_2.html

Rene

-- 
  Rene Nyffenegger
  http://www.adp-gmbh.ch/
Received on Fri Jun 24 2005 - 03:51:27 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US