Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Object Relational Feature
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
![]() |
![]() |