Thanks Matt,

That's true, but super is limited to only one level I believe. How about if
I wanted to execute the method in the animal object?

Dan



On Fri, Jun 29, 2012 at 3:08 PM, Matt Quackenbush <quackfu...@gmail.com>wrote:

>
> Since oCat extends feline, you'd be looking for super.makeSound().
>
> // oCat
> function makeSound()
> {
>     super.makeSound();
> }
>
>
> HTH
>
>
> On Fri, Jun 29, 2012 at 7:49 AM, Dan O'Keefe <dan.oke...@gmail.com> wrote:
>
> >
> > I have an animal object with a method call makeSound().
> >
> > Then I have a feline object that extends animal with a method called
> > makeSound().
> >
> > Then I have an object named cat that extends feline with a method called
> > makeSound().
> >
> > If I instantiate the cat object and call it oCat, I can call
> > oCat.makeSound() and get the cat sound.
> >
> > QUESTION IS, how do I call the makeSound() method in the feline object
> via
> > the oCat handle?
> >
> > I am told it is possible but I have not been able to find out exactly
> how.
> > I did read you need to pass a type reference to it but not sure what that
> > means. Would it be oCat.makeSound(feline) ??
> >
> > --------------
> > Dan O'Keefe
> >
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351786
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to